@Configuration(proxyBeanMethods=false) @Import(value=WebMvcAutoConfiguration.EnableWebMvcConfiguration.class) @EnableConfigurationProperties(value={WebMvcProperties.class,WebProperties.class}) @Order(value=0) public static class WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter extends Object implements WebMvcConfigurer, ServletContextAware
| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFormatters(FormatterRegistry registry) |
void |
addResourceHandlers(ResourceHandlerRegistry registry) |
BeanNameViewResolver |
beanNameViewResolver() |
void |
configureAsyncSupport(AsyncSupportConfigurer configurer) |
void |
configureContentNegotiation(ContentNegotiationConfigurer configurer) |
void |
configureMessageConverters(List<HttpMessageConverter<?>> converters) |
void |
configurePathMatch(PathMatchConfigurer configurer) |
InternalResourceViewResolver |
defaultViewResolver() |
MessageCodesResolver |
getMessageCodesResolver() |
static RequestContextFilter |
requestContextFilter() |
void |
setServletContext(ServletContext servletContext) |
ContentNegotiatingViewResolver |
viewResolver(BeanFactory beanFactory) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddArgumentResolvers, addCorsMappings, addInterceptors, addReturnValueHandlers, addViewControllers, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getValidatorpublic 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)
public void setServletContext(ServletContext servletContext)
setServletContext in interface ServletContextAwarepublic void configureMessageConverters(List<HttpMessageConverter<?>> converters)
configureMessageConverters in interface WebMvcConfigurerpublic void configureAsyncSupport(AsyncSupportConfigurer configurer)
configureAsyncSupport in interface WebMvcConfigurerpublic void configurePathMatch(PathMatchConfigurer configurer)
configurePathMatch in interface WebMvcConfigurerpublic void configureContentNegotiation(ContentNegotiationConfigurer configurer)
configureContentNegotiation in interface WebMvcConfigurer@Bean @ConditionalOnMissingBean public InternalResourceViewResolver defaultViewResolver()
@Bean @ConditionalOnBean(value=org.springframework.web.servlet.View.class) @ConditionalOnMissingBean public BeanNameViewResolver beanNameViewResolver()
@Bean @ConditionalOnBean(value=org.springframework.web.servlet.ViewResolver.class) @ConditionalOnMissingBean(name="viewResolver", value=org.springframework.web.servlet.view.ContentNegotiatingViewResolver.class) public ContentNegotiatingViewResolver viewResolver(BeanFactory beanFactory)
public MessageCodesResolver getMessageCodesResolver()
getMessageCodesResolver in interface WebMvcConfigurerpublic void addFormatters(FormatterRegistry registry)
addFormatters in interface WebMvcConfigurerpublic void addResourceHandlers(ResourceHandlerRegistry registry)
addResourceHandlers in interface WebMvcConfigurer@Bean @ConditionalOnMissingBean(value={org.springframework.web.context.request.RequestContextListener.class,org.springframework.web.filter.RequestContextFilter.class}) @ConditionalOnMissingFilterBean(value=org.springframework.web.filter.RequestContextFilter.class) public static RequestContextFilter requestContextFilter()