程序包 org.springframework.web.servlet.mvc
Standard controller implementations for the Servlet MVC framework that comes with Spring. Provides various controller styles, including an annotation-based model.
接口概要 接口 说明 Controller Base Controller interface, representing a component that receivesHttpServletRequest
andHttpServletResponse
instances just like aHttpServlet
but is able to participate in an MVC workflow.LastModified Supports last-modified HTTP requests to facilitate content caching.类概要 类 说明 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.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.ServletForwardingController Spring Controller implementation that forwards to a named servlet, i.e. the "servlet-name" in web.xml rather than a URL path mapping.ServletWrappingController Spring Controller implementation that wraps a servlet instance which it manages internally.SimpleControllerHandlerAdapter Adapter to use the plainController
workflow interface with the genericDispatcherServlet
.UrlFilenameViewController SimpleController
implementation that transforms the virtual path of a URL into a view name and returns that view.WebContentInterceptor Handler interceptor that checks the request and prepares the response.