Spring Framework

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

Annotation-based setup for Spring MVC.

See:
          Description

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

Class Summary
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 Encapsulates a HandlerInterceptor and an optional list of URL patterns.
InterceptorRegistry Stores and provides access to a list of 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
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.


Spring Framework