@Configuration @Import(value=WebMvcAutoConfiguration.EnableWebMvcConfiguration.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() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFormatters(FormatterRegistry registry) |
void |
addResourceHandlers(ResourceHandlerRegistry registry) |
void |
addViewControllers(ViewControllerRegistry registry) |
BeanNameViewResolver |
beanNameViewResolver() |
void |
configureContentNegotiation(ContentNegotiationConfigurer configurer) |
void |
configureMessageConverters(List<HttpMessageConverter<?>> converters) |
Formatter<Date> |
dateFormatter() |
InternalResourceViewResolver |
defaultViewResolver() |
MessageCodesResolver |
getMessageCodesResolver() |
LocaleResolver |
localeResolver() |
RequestContextListener |
requestContextListener() |
ContentNegotiatingViewResolver |
viewResolver(BeanFactory beanFactory) |
addArgumentResolvers, addInterceptors, addReturnValueHandlers, configureAsyncSupport, configureDefaultServletHandling, configureHandlerExceptionResolvers, configurePathMatch, configureViewResolvers, extendMessageConverters, getValidatorpublic void configureMessageConverters(List<HttpMessageConverter<?>> converters)
configureMessageConverters in interface WebMvcConfigurerconfigureMessageConverters in class WebMvcConfigurerAdapterpublic void configureContentNegotiation(ContentNegotiationConfigurer configurer)
configureContentNegotiation in interface WebMvcConfigurerconfigureContentNegotiation in class WebMvcConfigurerAdapter@Bean @ConditionalOnMissingBean(value=org.springframework.web.servlet.view.InternalResourceViewResolver.class) public InternalResourceViewResolver defaultViewResolver()
@Bean @ConditionalOnMissingBean(value=org.springframework.web.context.request.RequestContextListener.class) public RequestContextListener requestContextListener()
@Bean @ConditionalOnBean(value=org.springframework.web.servlet.View.class) 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(value=org.springframework.web.servlet.LocaleResolver.class) public LocaleResolver localeResolver()
public MessageCodesResolver getMessageCodesResolver()
getMessageCodesResolver in interface WebMvcConfigurergetMessageCodesResolver in class WebMvcConfigurerAdapterpublic void addFormatters(FormatterRegistry registry)
addFormatters in interface WebMvcConfigureraddFormatters in class WebMvcConfigurerAdapterpublic void addResourceHandlers(ResourceHandlerRegistry registry)
addResourceHandlers in interface WebMvcConfigureraddResourceHandlers in class WebMvcConfigurerAdapterpublic void addViewControllers(ViewControllerRegistry registry)
addViewControllers in interface WebMvcConfigureraddViewControllers in class WebMvcConfigurerAdapterCopyright © 2016 Pivotal Software, Inc.. All rights reserved.