@Configuration @Import(value=WebMvcAutoConfiguration.EnableWebMvcConfiguration.class) @EnableConfigurationProperties(value={WebMvcProperties.class,ResourceProperties.class}) @Order(value=0) public static class WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
Modifier and Type | Class and Description |
---|---|
static class |
WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter.FaviconConfiguration |
Constructor and Description |
---|
WebMvcAutoConfigurationAdapter(ResourceProperties resourceProperties,
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) |
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(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() |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addArgumentResolvers, addCorsMappings, addInterceptors, addReturnValueHandlers, addViewControllers, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getValidator
public WebMvcAutoConfigurationAdapter(ResourceProperties resourceProperties, 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)
public void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
configureMessageConverters
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public void configureAsyncSupport(org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer configurer)
configureAsyncSupport
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public void configurePathMatch(org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer)
configurePathMatch
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public 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)
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.mvc", name="locale") public org.springframework.web.servlet.LocaleResolver localeResolver()
public org.springframework.validation.MessageCodesResolver getMessageCodesResolver()
getMessageCodesResolver
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public void addFormatters(org.springframework.format.FormatterRegistry registry)
addFormatters
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public 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()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.