Package org.springframework.web.servlet.config.annotation
@NonNullApi
@NonNullFields
package org.springframework.web.servlet.config.annotation
Annotation-based setup for Spring MVC.
-
ClassDescriptionHelps with configuring options for asynchronous request processing.Creates a
ContentNegotiationManager
and configures it with one or moreContentNegotiationStrategy
instances.Assists with the creation of aCorsConfiguration
instance for a given URL path pattern.Assists with the registration of global, URL pattern basedCorsConfiguration
mappings.Configures a request handler for serving static resources by forwarding the request to the Servlet container's "default" Servlet.A subclass ofWebMvcConfigurationSupport
that detects and delegates to all beans of typeWebMvcConfigurer
allowing them to customize the configuration provided byWebMvcConfigurationSupport
.Adding this annotation to an@Configuration
class imports the Spring MVC configuration fromWebMvcConfigurationSupport
, for example:Assists with the creation of aMappedInterceptor
.Helps with configuring a list of mapped interceptors.Configure path matching options.Assist with the registration of a single redirect view controller.Assists with the registration of resource resolvers and transformers.Encapsulates information required to create a resource handler.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.Assist with configuring aUrlBasedViewResolver
.Assist with the registration of a single view controller.Assists with the registration of simple automated controllers pre-configured with status code and/or a view.Assist with the configuration of a chain ofViewResolver
instances.This is the main class providing the configuration behind the MVC Java config.Defines callback methods to customize the Java-based configuration for Spring MVC enabled via@EnableWebMvc
.