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
ContentNegotiationManagerand configures it with one or moreContentNegotiationStrategyinstances.Assists with the creation of aCorsConfigurationinstance for a given URL path pattern.Assists with the registration of global, URL pattern basedCorsConfigurationmappings.Configures a request handler for serving static resources by forwarding the request to the Servlet container's "default" Servlet.A subclass ofWebMvcConfigurationSupportthat detects and delegates to all beans of typeWebMvcConfigurerallowing them to customize the configuration provided byWebMvcConfigurationSupport.Adding this annotation to an@Configurationclass imports the Spring MVC configuration fromWebMvcConfigurationSupport, e.g.: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 ofViewResolverinstances.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.