@Configuration(proxyBeanMethods=false) @Import(value=WebMvcAutoConfiguration.EnableWebMvcConfiguration.class) @EnableConfigurationProperties(value={WebMvcProperties.class,ResourceProperties.class,WebProperties.class}) @Order(value=0) public static class WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter extends java.lang.Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer, org.springframework.web.context.ServletContextAware
| Constructor and Description |
|---|
WebMvcAutoConfigurationAdapter(ResourceProperties resourceProperties,
WebProperties webProperties,
WebMvcProperties mvcProperties,
org.springframework.beans.factory.ListableBeanFactory beanFactory,
org.springframework.beans.factory.ObjectProvider<HttpMessageConverters> messageConvertersProvider,
org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.ResourceHandlerRegistrationCustomizer> resourceHandlerRegistrationCustomizerProvider,
org.springframework.beans.factory.ObjectProvider<DispatcherServletPath> dispatcherServletPath,
org.springframework.beans.factory.ObjectProvider<org.springframework.boot.web.servlet.ServletRegistrationBean<?>> servletRegistrations) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFormatters(org.springframework.format.FormatterRegistry registry) |
void |
addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) |
org.springframework.web.servlet.view.BeanNameViewResolver |
beanNameViewResolver() |
void |
configureAsyncSupport(org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer configurer) |
void |
configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer) |
void |
configureMessageConverters(java.util.List<org.springframework.http.converter.HttpMessageConverter<?>> converters) |
void |
configurePathMatch(org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer) |
org.springframework.web.servlet.view.InternalResourceViewResolver |
defaultViewResolver() |
org.springframework.validation.MessageCodesResolver |
getMessageCodesResolver() |
static org.springframework.web.filter.RequestContextFilter |
requestContextFilter() |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
org.springframework.web.servlet.view.ContentNegotiatingViewResolver |
viewResolver(org.springframework.beans.factory.BeanFactory beanFactory) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddArgumentResolvers, addCorsMappings, addInterceptors, addReturnValueHandlers, addViewControllers, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getValidatorpublic WebMvcAutoConfigurationAdapter(ResourceProperties resourceProperties, WebProperties webProperties, WebMvcProperties mvcProperties, org.springframework.beans.factory.ListableBeanFactory beanFactory, org.springframework.beans.factory.ObjectProvider<HttpMessageConverters> messageConvertersProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.ResourceHandlerRegistrationCustomizer> resourceHandlerRegistrationCustomizerProvider, org.springframework.beans.factory.ObjectProvider<DispatcherServletPath> dispatcherServletPath, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.web.servlet.ServletRegistrationBean<?>> servletRegistrations)
public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext in interface org.springframework.web.context.ServletContextAwarepublic void configureMessageConverters(java.util.List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
configureMessageConverters in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurerpublic void configureAsyncSupport(org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer configurer)
configureAsyncSupport in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurerpublic void configurePathMatch(org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer)
configurePathMatch in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurerpublic void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
configureContentNegotiation in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer@Bean @ConditionalOnMissingBean public org.springframework.web.servlet.view.InternalResourceViewResolver defaultViewResolver()
@Bean @ConditionalOnBean(value=org.springframework.web.servlet.View.class) @ConditionalOnMissingBean public org.springframework.web.servlet.view.BeanNameViewResolver beanNameViewResolver()
@Bean @ConditionalOnBean(value=org.springframework.web.servlet.ViewResolver.class) @ConditionalOnMissingBean(name="viewResolver", value=org.springframework.web.servlet.view.ContentNegotiatingViewResolver.class) public org.springframework.web.servlet.view.ContentNegotiatingViewResolver viewResolver(org.springframework.beans.factory.BeanFactory beanFactory)
public org.springframework.validation.MessageCodesResolver getMessageCodesResolver()
getMessageCodesResolver in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurerpublic void addFormatters(org.springframework.format.FormatterRegistry registry)
addFormatters in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurerpublic void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
addResourceHandlers in interface org.springframework.web.servlet.config.annotation.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 org.springframework.web.filter.RequestContextFilter requestContextFilter()