Class WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter
java.lang.Object
org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter
- All Implemented Interfaces:
Aware
,ServletContextAware
,WebMvcConfigurer
- Enclosing class:
- WebMvcAutoConfiguration
@Configuration(proxyBeanMethods=false)
@Import(EnableWebMvcConfiguration.class)
@EnableConfigurationProperties({WebMvcProperties.class,WebProperties.class})
@Order(0)
public static class WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter
extends Object
implements WebMvcConfigurer, ServletContextAware
-
Constructor Summary
ConstructorDescriptionWebMvcAutoConfigurationAdapter
(WebProperties webProperties, WebMvcProperties mvcProperties, ListableBeanFactory beanFactory, ObjectProvider<HttpMessageConverters> messageConvertersProvider, ObjectProvider<org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.ResourceHandlerRegistrationCustomizer> resourceHandlerRegistrationCustomizerProvider, ObjectProvider<DispatcherServletPath> dispatcherServletPath, ObjectProvider<ServletRegistrationBean<?>> servletRegistrations) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFormatters
(FormatterRegistry registry) void
addResourceHandlers
(ResourceHandlerRegistry registry) void
configureAsyncSupport
(AsyncSupportConfigurer configurer) void
void
configureMessageConverters
(List<HttpMessageConverter<?>> converters) void
configurePathMatch
(PathMatchConfigurer configurer) static RequestContextFilter
void
setServletContext
(ServletContext servletContext) viewResolver
(BeanFactory beanFactory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addErrorResponseInterceptors, addInterceptors, addReturnValueHandlers, addViewControllers, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getValidator
-
Constructor Details
-
WebMvcAutoConfigurationAdapter
public WebMvcAutoConfigurationAdapter(WebProperties webProperties, WebMvcProperties mvcProperties, ListableBeanFactory beanFactory, ObjectProvider<HttpMessageConverters> messageConvertersProvider, ObjectProvider<org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.ResourceHandlerRegistrationCustomizer> resourceHandlerRegistrationCustomizerProvider, ObjectProvider<DispatcherServletPath> dispatcherServletPath, ObjectProvider<ServletRegistrationBean<?>> servletRegistrations)
-
-
Method Details
-
setServletContext
- Specified by:
setServletContext
in interfaceServletContextAware
-
configureMessageConverters
- Specified by:
configureMessageConverters
in interfaceWebMvcConfigurer
-
configureAsyncSupport
- Specified by:
configureAsyncSupport
in interfaceWebMvcConfigurer
-
configurePathMatch
- Specified by:
configurePathMatch
in interfaceWebMvcConfigurer
-
configureContentNegotiation
- Specified by:
configureContentNegotiation
in interfaceWebMvcConfigurer
-
defaultViewResolver
-
beanNameViewResolver
@Bean @ConditionalOnBean(org.springframework.web.servlet.View.class) @ConditionalOnMissingBean public BeanNameViewResolver beanNameViewResolver() -
viewResolver
@Bean @ConditionalOnBean(org.springframework.web.servlet.ViewResolver.class) @ConditionalOnMissingBean(name="viewResolver", value=org.springframework.web.servlet.view.ContentNegotiatingViewResolver.class) public ContentNegotiatingViewResolver viewResolver(BeanFactory beanFactory) -
getMessageCodesResolver
- Specified by:
getMessageCodesResolver
in interfaceWebMvcConfigurer
-
addFormatters
- Specified by:
addFormatters
in interfaceWebMvcConfigurer
-
addResourceHandlers
- Specified by:
addResourceHandlers
in interfaceWebMvcConfigurer
-
requestContextFilter
@Bean @ConditionalOnMissingBean({org.springframework.web.context.request.RequestContextListener.class,org.springframework.web.filter.RequestContextFilter.class}) @ConditionalOnMissingFilterBean(org.springframework.web.filter.RequestContextFilter.class) public static RequestContextFilter requestContextFilter()
-