Top Description Interfaces Annotations Classes
module spring.webmvc

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

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

Annotation-based setup for Spring MVC.

Interface Summary

Modifier and TypeInterface and Description
public interface
WebMvcConfigurer

Defines callback methods to customize the Java-based configuration for Spring MVC enabled via @EnableWebMvc.

Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
EnableWebMvc

Adding this annotation to an @Configuration class imports the Spring MVC configuration from WebMvcConfigurationSupport, e.g.:

@Configuration
@EnableWebMvc
@ComponentScan(basePackageClasses = MyConfiguration.class)
public class MyConfiguration {
}

Class Summary

Modifier and TypeClass and Description
public class
AsyncSupportConfigurer

Helps with configuring options for asynchronous request processing.

public class
ContentNegotiationConfigurer

Creates a ContentNegotiationManager and configures it with one or more ContentNegotiationStrategy instances.

public class
CorsRegistration

Assists with the creation of a CorsConfiguration instance for a given URL path pattern.

public class
CorsRegistry

Assists with the registration of global, URL pattern based CorsConfiguration mappings.

public class
DefaultServletHandlerConfigurer

Configures a request handler for serving static resources by forwarding the request to the Servlet container's "default" Servlet.

public class
DelegatingWebMvcConfiguration

A subclass of WebMvcConfigurationSupport that detects and delegates to all beans of type WebMvcConfigurer allowing them to customize the configuration provided by WebMvcConfigurationSupport.

public class
InterceptorRegistration

Assists with the creation of a MappedInterceptor.

public class
InterceptorRegistry

Helps with configuring a list of mapped interceptors.

public class
PathMatchConfigurer

Configure path matching options.

public class
RedirectViewControllerRegistration

Assist with the registration of a single redirect view controller.

public class
ResourceChainRegistration

Assists with the registration of resource resolvers and transformers.

public class
ResourceHandlerRegistration

Encapsulates information required to create a resource handler.

public class
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.

public class
public class
ViewControllerRegistration

Assist with the registration of a single view controller.

public class
ViewControllerRegistry

Assists with the registration of simple automated controllers pre-configured with status code and/or a view.

public class
ViewResolverRegistry

Assist with the configuration of a chain of ViewResolver instances.

public class
WebMvcConfigurationSupport

This is the main class providing the configuration behind the MVC Java config.

pack-priv class
WebMvcConfigurerComposite

A WebMvcConfigurer that delegates to one or more others.