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

Annotation-based setup for Spring MVC.

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  WebMvcConfigurer | Defines callback methods to customize the Java-based configuration for Spring MVC enabled via `@EnableWebMvc`.

- Class Summary
  Class | Description
  --- | ---
  AsyncSupportConfigurer | Helps with configuring options for asynchronous request processing.
  ContentNegotiationConfigurer | Helps with configuring a `ContentNegotiationManager`.
  DefaultServletHandlerConfigurer | Configures a request handler for serving static resources by forwarding the request to the Servlet container's "default" Servlet.
  DelegatingWebMvcConfiguration | A sub-class of `WebMvcConfigurationSupport` that detects and delegates to all beans of type `WebMvcConfigurer` allowing them to customize the configuration provided by `WebMvcConfigurationSupport`.
  InterceptorRegistration | Assists with the creation of a `MappedInterceptor`.
  InterceptorRegistry | Helps with configuring a list of mapped interceptors.
  ResourceHandlerRegistration | Encapsulates information required to create a resource handlers.
  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.
  ViewControllerRegistration | Encapsulates information required to create a view controller.
  ViewControllerRegistry | Stores registrations of view controllers.
  WebMvcConfigurationSupport | This is the main class providing the configuration behind the MVC Java config.
  WebMvcConfigurerAdapter | An implementation of `WebMvcConfigurer` with empty methods allowing sub-classes to override only the methods they're interested in.

- Annotation Types Summary
  Annotation Type | Description
  --- | ---
  EnableWebMvc | Add this annotation to an `@Configuration` class to have the Spring MVC configuration defined in `WebMvcConfigurationSupport` imported:
       @Configuration
       @EnableWebMvc
       @ComponentScan(basePackageClasses = { MyConfiguration.class })
       public class MyWebConfiguration {

       }

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

Annotation-based setup for Spring MVC.