spring-framework / org.springframework.web.servlet.config.annotation / WebMvcConfigurationSupport / <init>

<init>

WebMvcConfigurationSupport()

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:

Author
Rossen Stoyanchev

Author
Brian Clozel

Author
Sebastien Deleuze

Since
3.1

See Also
EnableWebMvcWebMvcConfigurer