# Package org.springframework.web.servlet.config.annotation

@NonNullApi @NonNullFields package org.springframework.web.servlet.config.annotation
Annotation-based setup for Spring MVC.

Related Packages
Package
Description
org.springframework.web.servlet.config
Defines the XML configuration namespace for Spring MVC.
Class
Description
AsyncSupportConfigurer
Helps with configuring options for asynchronous request processing.
ContentNegotiationConfigurer
Creates a `ContentNegotiationManager` and configures it with one or more `ContentNegotiationStrategy` instances.
CorsRegistration
Assists with the creation of a `CorsConfiguration` instance for a given URL path pattern.
CorsRegistry
Assists with the registration of global, URL pattern based `CorsConfiguration` mappings.
DefaultServletHandlerConfigurer
Configures a request handler for serving static resources by forwarding the request to the Servlet container's "default" Servlet.
DelegatingWebMvcConfiguration
A subclass of `WebMvcConfigurationSupport` that detects and delegates to all beans of type `WebMvcConfigurer` allowing them to customize the configuration provided by `WebMvcConfigurationSupport`.
EnableWebMvc
Adding this annotation to an `@Configuration` class imports the Spring MVC configuration from `WebMvcConfigurationSupport`, for example:
InterceptorRegistration
Assists with the creation of a `MappedInterceptor`.
InterceptorRegistry
Helps with configuring a list of mapped interceptors.
PathMatchConfigurer
Configure path matching options.
RedirectViewControllerRegistration
Assist with the registration of a single redirect view controller.
ResourceChainRegistration
Assists with the registration of resource resolvers and transformers.
ResourceHandlerRegistration
Encapsulates information required to create a resource handler.
ResourceHandlerRegistry
Stores registrations of resource handlers for serving static resources such as images, css files and others through Spring MVC including setting cache headers optimized for efficient loading in a web browser.
UrlBasedViewResolverRegistration
Assist with configuring a `UrlBasedViewResolver`.
ViewControllerRegistration
Assist with the registration of a single view controller.
ViewControllerRegistry
Assists with the registration of simple automated controllers pre-configured with status code and/or a view.
ViewResolverRegistry
Assist with the configuration of a chain of `ViewResolver` instances.
WebMvcConfigurationSupport
This is the main class providing the configuration behind the MVC Java config.
WebMvcConfigurer
Defines callback methods to customize the Java-based configuration for Spring MVC enabled via `@EnableWebMvc`.