@Configuration @Import(value={WebMvcAutoConfiguration.EnableWebMvcConfiguration.class,org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration.MvcValidatorRegistrar.class}) @EnableConfigurationProperties(value={WebMvcProperties.class,ResourceProperties.class}) public static class WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter extends WebMvcConfigurerAdapter
Modifier and Type | Class and Description |
---|---|
static class |
WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter.FaviconConfiguration |
Constructor and Description |
---|
WebMvcAutoConfigurationAdapter(ResourceProperties resourceProperties,
WebMvcProperties mvcProperties,
ListableBeanFactory beanFactory,
HttpMessageConverters messageConverters,
ObjectProvider<org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration.ResourceHandlerRegistrationCustomizer> resourceHandlerRegistrationCustomizerProvider) |
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) |
Formatter<Date> |
dateFormatter() |
InternalResourceViewResolver |
defaultViewResolver() |
MessageCodesResolver |
getMessageCodesResolver() |
LocaleResolver |
localeResolver() |
static RequestContextFilter |
requestContextFilter() |
ContentNegotiatingViewResolver |
viewResolver(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, ListableBeanFactory beanFactory, HttpMessageConverters messageConverters, ObjectProvider<org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration.ResourceHandlerRegistrationCustomizer> resourceHandlerRegistrationCustomizerProvider)
public void configureMessageConverters(List<HttpMessageConverter<?>> converters)
configureMessageConverters
in interface WebMvcConfigurer
configureMessageConverters
in class WebMvcConfigurerAdapter
public void configureAsyncSupport(AsyncSupportConfigurer configurer)
configureAsyncSupport
in interface WebMvcConfigurer
configureAsyncSupport
in class WebMvcConfigurerAdapter
public void configureContentNegotiation(ContentNegotiationConfigurer configurer)
configureContentNegotiation
in interface WebMvcConfigurer
configureContentNegotiation
in class WebMvcConfigurerAdapter
@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)
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.mvc", name="locale") public LocaleResolver localeResolver()
@Bean @ConditionalOnProperty(prefix="spring.mvc", name="date-format") public Formatter<Date> dateFormatter()
public MessageCodesResolver getMessageCodesResolver()
getMessageCodesResolver
in interface WebMvcConfigurer
getMessageCodesResolver
in class WebMvcConfigurerAdapter
public void addFormatters(FormatterRegistry registry)
addFormatters
in interface WebMvcConfigurer
addFormatters
in class WebMvcConfigurerAdapter
public void addResourceHandlers(ResourceHandlerRegistry registry)
addResourceHandlers
in interface WebMvcConfigurer
addResourceHandlers
in class 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 RequestContextFilter requestContextFilter()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.