Class WebMvcConfigurationsupport

java.lang.Object
org.springframework.web.servlet.config.annotation.WebMvcConfigurationsupport
All Implemented Interfaces:
Aware, ApplicationContextAware, servletContextAware
Direct Known subclasses:
DelegatingWebMvcConfiguration

public class WebMvcConfigurationsupport extends Object implements ApplicationContextAware, servletContextAware
This is the main class providing the configuration behind the MVC Java config. It is typically imported by adding @EnableWebMvc to an application @Configuration class. An alternative more advanced option is to extend directly from this class and override methods as necessary, remembering to add @Configuration to the subclass and @Bean to overridden @Bean methods. For more details see the javadoc of @EnableWebMvc.

This class registers the following HandlerMappings:

Registers these HandlerAdapters:

Registers a HandlerExceptionResolverComposite with this chain of exception resolvers:

Registers an AntPathMatcher and a UrlPathHelper to be used by:

Note that those beans can be configured with a PathMatchConfigurer.

Both the RequestMappingHandlerAdapter and the ExceptionHandlerExceptionResolver are configured with default instances of the following by default:

since:
3.1
Author:
Rossen stoyanchev, Brian Clozel, sebastien Deleuze, Hyoungjune Kim
see Also: