# 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.

Related Packages
Package
Description
org.springframework.web.servlet
Provides servlets that integrate with the application context infrastructure, and the core interfaces and classes for the Spring web MVC framework.
org.springframework.web.servlet.mvc.annotation
Support package for annotation-based Servlet MVC controllers.
org.springframework.web.servlet.mvc.condition
Common MVC logic for matching incoming requests based on conditions.
org.springframework.web.servlet.mvc.method
Servlet-based infrastructure for handler method processing, building on the `org.springframework.web.method` package.
org.springframework.web.servlet.mvc.support
Support package for MVC controllers.
Class
Description
AbstractController
Convenient superclass for controller implementations, using the Template Method design pattern.
AbstractUrlViewController
Abstract base class for `Controllers` that return a view name based on the request URL.
Controller
Base Controller interface, representing a component that receives `HttpServletRequest` and `HttpServletResponse` instances just like a `HttpServlet` but is able to participate in an MVC workflow.
HttpRequestHandlerAdapter
Adapter to use the plain `HttpRequestHandler` interface with the generic `DispatcherServlet`.
LastModified
Deprecated.
as of 5.3.9 in favor of using the `checkNotModified` methods in `WebRequest`, or from an annotated controller method, returning a `ResponseEntity` with an "ETag" and/or "Last-Modified" headers set.
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.
ServletWrappingController
Spring Controller implementation that wraps a servlet instance which it manages internally.
SimpleControllerHandlerAdapter
Adapter to use the plain `Controller` workflow interface with the generic `DispatcherServlet`.
UrlFilenameViewController
Simple `Controller` implementation that transforms the virtual path of a URL into a view name and returns that view.
WebContentInterceptor
Handler interceptor that checks the request for supported methods and a required session and prepares the response by applying the configured cache settings.