程序包的使用
org.springframework.web.servlet.mvc
使用org.springframework.web.servlet.mvc的程序包 程序包 说明 org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.servlet.mvc Standard controller implementations for the Servlet MVC framework that comes with Spring.org.springframework.web.servlet.config.annotation使用的org.springframework.web.servlet.mvc中的类 类 说明 HttpRequestHandlerAdapter Adapter to use the plainHttpRequestHandler
interface with the genericDispatcherServlet
.ParameterizableViewController Trivial controller that always returns a pre-configured view and optionally sets the response status code.SimpleControllerHandlerAdapter Adapter to use the plainController
workflow interface with the genericDispatcherServlet
.org.springframework.web.servlet.mvc使用的org.springframework.web.servlet.mvc中的类 类 说明 AbstractController Convenient superclass for controller implementations, using the Template Method design pattern.AbstractUrlViewController Abstract base class forControllers
that return a view name based on the request URL.Controller Base Controller interface, representing a component that receivesHttpServletRequest
andHttpServletResponse
instances just like aHttpServlet
but is able to participate in an MVC workflow.