WebMvcConfigurationSupport that detects and delegates
to all beans of type WebMvcConfigurer allowing them to customize the
configuration provided by WebMvcConfigurationSupport. This is the
class actually imported by @EnableWebMvc.
| Modifier and Type | Field and Description |
|---|---|
| private final WebMvcConfigurerComposite |
| Access | Constructor and Description |
|---|---|
| public |
| configurers | back to summary |
|---|---|
| private final WebMvcConfigurerComposite configurers | |
| DelegatingWebMvcConfiguration | back to summary |
|---|---|
| public DelegatingWebMvcConfiguration() | |
| addArgumentResolvers | back to summary |
|---|---|
| protected void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) Overrides org. Doc from org. Add custom Custom argument resolvers are invoked before built-in resolvers except for
those that rely on the presence of annotations (e.g.
| |
| addCorsMappings | back to summary |
|---|---|
| protected void addCorsMappings(CorsRegistry registry) Overrides org. Doc from org. Override this method to configure cross-origin requests processing.
| |
| addFormatters | back to summary |
|---|---|
| protected void addFormatters(FormatterRegistry registry) Overrides org. Doc from org. Override this method to add custom
| |
| addInterceptors | back to summary |
|---|---|
| protected void addInterceptors(InterceptorRegistry registry) Overrides org. Doc from org. Override this method to add Spring MVC interceptors for pre- and post-processing of controller invocation.
| |
| addResourceHandlers | back to summary |
|---|---|
| protected void addResourceHandlers(ResourceHandlerRegistry registry) Overrides org. Doc from org. Override this method to add resource handlers for serving static resources.
| |
| addReturnValueHandlers | back to summary |
|---|---|
| protected void addReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers) Overrides org. Doc from org. Add custom Custom return value handlers are invoked before built-in ones except for
those that rely on the presence of annotations (e.g.
| |
| addViewControllers | back to summary |
|---|---|
| protected void addViewControllers(ViewControllerRegistry registry) Overrides org. Doc from org. Override this method to add view controllers.
| |
| configureAsyncSupport | back to summary |
|---|---|
| protected void configureAsyncSupport(AsyncSupportConfigurer configurer) Overrides org. Doc from org. Override this method to configure asynchronous request processing options.
| |
| configureContentNegotiation | back to summary |
|---|---|
| protected void configureContentNegotiation(ContentNegotiationConfigurer configurer) Override this method to configure content negotiation.
| |
| configureDefaultServletHandling | back to summary |
|---|---|
| protected void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) Override this method to configure "default" Servlet handling.
| |
| configureHandlerExceptionResolvers | back to summary |
|---|---|
| protected void configureHandlerExceptionResolvers(List<HandlerExceptionResolver> exceptionResolvers) Override this method to configure the list of
Adding resolvers to the list turns off the default resolvers that would otherwise
be registered by default. Also see
| |
| configureMessageConverters | back to summary |
|---|---|
| protected void configureMessageConverters(List<HttpMessageConverter<?>> converters) Override this method to add custom Adding converters to the list turns off the default converters that would
otherwise be registered by default. Also see
| |
| configurePathMatch | back to summary |
|---|---|
| protected void configurePathMatch(PathMatchConfigurer configurer) Overrides org. Doc from org. Override this method to configure path matching options.
| |
| configureViewResolvers | back to summary |
|---|---|
| protected void configureViewResolvers(ViewResolverRegistry registry) Overrides org. Doc from org. Override this method to configure view resolution.
| |
| extendHandlerExceptionResolvers | back to summary |
|---|---|
| protected void extendHandlerExceptionResolvers(List<HandlerExceptionResolver> exceptionResolvers) Override this method to extend or modify the list of
This may be useful for example to allow default resolvers to be registered and then insert a custom one through this method.
| |
| extendMessageConverters | back to summary |
|---|---|
| protected void extendMessageConverters(List<HttpMessageConverter<?>> converters) Overrides org. Doc from org. Override this method to extend or modify the list of converters after it has been configured. This may be useful for example to allow default converters to be registered and then insert a custom converter through this method.
| |
| getMessageCodesResolver | back to summary |
|---|---|
| protected MessageCodesResolver getMessageCodesResolver() Overrides org. Doc from org. Override this method to provide a custom | |
| getValidator | back to summary |
|---|---|
| protected Validator getValidator() Overrides org. Doc from org. Override this method to provide a custom | |
| setConfigurers | back to summary |
|---|---|
public void setConfigurers(List<WebMvcConfigurer> configurers)
| |