@Configuration @Import(value=WebMvcAutoConfiguration.EnableWebMvcConfiguration.class) @EnableConfigurationProperties(value={WebMvcProperties.class,ResourceProperties.class}) public static class WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
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,
HttpMessageConverters messageConverters,
org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.web.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) |
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) |
addArgumentResolvers, addCorsMappings, addInterceptors, addReturnValueHandlers, addViewControllers, configureDefaultServletHandling, configureHandlerExceptionResolvers, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getValidator
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)
public void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
configureMessageConverters
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
configureMessageConverters
in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
public void configureAsyncSupport(org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer configurer)
configureAsyncSupport
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
configureAsyncSupport
in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
public void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
configureContentNegotiation
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
configureContentNegotiation
in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
@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()
@Bean @ConditionalOnProperty(prefix="spring.mvc", name="date-format") public org.springframework.format.Formatter<Date> dateFormatter()
public org.springframework.validation.MessageCodesResolver getMessageCodesResolver()
getMessageCodesResolver
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
getMessageCodesResolver
in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
public void addFormatters(org.springframework.format.FormatterRegistry registry)
addFormatters
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addFormatters
in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
addResourceHandlers
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addResourceHandlers
in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
@Bean public org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration.WelcomePageHandlerMapping welcomePageHandlerMapping(ResourceProperties resourceProperties)
@Bean @ConditionalOnMissingBean(value={org.springframework.web.context.request.RequestContextListener.class,org.springframework.web.filter.RequestContextFilter.class}) public static org.springframework.web.filter.RequestContextFilter requestContextFilter()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.