Class WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter
- java.lang.Object
- org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
- org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
- Enclosing class:
- WebMvcAutoConfiguration
@Configuration @Import(EnableWebMvcConfiguration.class) @EnableConfigurationProperties({WebMvcProperties.class,ResourceProperties.class}) public static class WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter.FaviconConfiguration
Constructor Summary
Constructors Constructor Description WebMvcAutoConfigurationAdapter(ResourceProperties resourceProperties, WebMvcProperties mvcProperties, org.springframework.beans.factory.ListableBeanFactory beanFactory, HttpMessageConverters messageConverters, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration.ResourceHandlerRegistrationCustomizer> resourceHandlerRegistrationCustomizerProvider)
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
org.springframework.format.Formatter<Date>
dateFormatter()
org.springframework.web.servlet.view.InternalResourceViewResolver
defaultViewResolver()
org.springframework.validation.MessageCodesResolver
getMessageCodesResolver()
org.springframework.web.servlet.LocaleResolver
localeResolver()
static org.springframework.web.filter.RequestContextFilter
requestContextFilter()
org.springframework.web.servlet.view.ContentNegotiatingViewResolver
viewResolver(org.springframework.beans.factory.BeanFactory beanFactory)
org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration.WelcomePageHandlerMapping
welcomePageHandlerMapping(ResourceProperties resourceProperties)
Methods inherited from class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
addArgumentResolvers, addCorsMappings, addInterceptors, addReturnValueHandlers, addViewControllers, configureDefaultServletHandling, configureHandlerExceptionResolvers, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getValidator
Constructor Detail
WebMvcAutoConfigurationAdapter
public WebMvcAutoConfigurationAdapter(ResourceProperties resourceProperties, WebMvcProperties mvcProperties, org.springframework.beans.factory.ListableBeanFactory beanFactory, @Lazy HttpMessageConverters messageConverters, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration.ResourceHandlerRegistrationCustomizer> resourceHandlerRegistrationCustomizerProvider)
Method Detail
configureMessageConverters
public void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
- Specified by:
configureMessageConverters
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
- Overrides:
configureMessageConverters
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
configureAsyncSupport
public void configureAsyncSupport(org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer configurer)
- Specified by:
configureAsyncSupport
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
- Overrides:
configureAsyncSupport
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
configureContentNegotiation
public void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
- Specified by:
configureContentNegotiation
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
- Overrides:
configureContentNegotiation
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
defaultViewResolver
@Bean @ConditionalOnMissingBean public org.springframework.web.servlet.view.InternalResourceViewResolver defaultViewResolver()
beanNameViewResolver
@Bean @ConditionalOnBean(org.springframework.web.servlet.View.class) @ConditionalOnMissingBean public org.springframework.web.servlet.view.BeanNameViewResolver beanNameViewResolver()
viewResolver
@Bean @ConditionalOnBean(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)
localeResolver
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.mvc", name="locale") public org.springframework.web.servlet.LocaleResolver localeResolver()
dateFormatter
@Bean @ConditionalOnProperty(prefix="spring.mvc", name="date-format") public org.springframework.format.Formatter<Date> dateFormatter()
getMessageCodesResolver
public org.springframework.validation.MessageCodesResolver getMessageCodesResolver()
- Specified by:
getMessageCodesResolver
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
- Overrides:
getMessageCodesResolver
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
addFormatters
public void addFormatters(org.springframework.format.FormatterRegistry registry)
- Specified by:
addFormatters
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
- Overrides:
addFormatters
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
addResourceHandlers
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
- Specified by:
addResourceHandlers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
- Overrides:
addResourceHandlers
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
welcomePageHandlerMapping
@Bean public org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration.WelcomePageHandlerMapping welcomePageHandlerMapping(ResourceProperties resourceProperties)
requestContextFilter
@Bean @ConditionalOnMissingBean({org.springframework.web.context.request.RequestContextListener.class,org.springframework.web.filter.RequestContextFilter.class}) public static org.springframework.web.filter.RequestContextFilter requestContextFilter()