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
Controllers
that return a view name based on the request URL.Base Controller interface, representing a component that receivesHttpServletRequest
andHttpServletResponse
instances just like aHttpServlet
but is able to participate in an MVC workflow.Adapter to use the plainHttpRequestHandler
interface 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 plainController
workflow interface with the genericDispatcherServlet
.SimpleController
implementation 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.
checkNotModified
methods inWebRequest
, or from an annotated controller method, returning aResponseEntity
with an "ETag" and/or "Last-Modified" headers set.