Package org.springframework.web.servlet.mvc
@NonNullApi
@NonNullFields
package 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.
-
ClassDescriptionConvenient superclass for controller implementations, using the Template Method design pattern.Abstract base class for
Controllersthat return a view name based on the request URL.Base Controller interface, representing a component that receivesHttpServletRequestandHttpServletResponseinstances just like aHttpServletbut is able to participate in an MVC workflow.Adapter to use the plainHttpRequestHandlerinterface with the genericDispatcherServlet.Deprecated.Trivial controller that always returns a pre-configured view and optionally sets the response status code.Spring Controller implementation that forwards to a named servlet, i.e.Spring Controller implementation that wraps a servlet instance which it manages internally.Adapter to use the plainControllerworkflow interface with the genericDispatcherServlet.SimpleControllerimplementation that transforms the virtual path of a URL into a view name and returns that view.Handler interceptor that checks the request for supported methods and a required session and prepares the response by applying the configured cache settings.
checkNotModifiedmethods inWebRequest, or from an annotated controller method, returning aResponseEntitywith an "ETag" and/or "Last-Modified" headers set.