@Configuration(proxyBeanMethods=false) @Import(value=WebMvcAutoConfiguration.EnableWebMvcConfiguration.class) @EnableConfigurationProperties(value={WebMvcProperties.class,ResourceProperties.class}) @Order(value=0) public static class WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter extends Object implements WebMvcConfigurer
Constructor and Description |
---|
WebMvcAutoConfigurationAdapter(WebMvcProperties mvcProperties,
ListableBeanFactory beanFactory,
ObjectProvider<HttpMessageConverters> messageConvertersProvider) |
Modifier and Type | Method and Description |
---|---|
void |
addFormatters(FormatterRegistry registry) |
BeanNameViewResolver |
beanNameViewResolver() |
void |
configureAsyncSupport(AsyncSupportConfigurer configurer) |
void |
configureContentNegotiation(ContentNegotiationConfigurer configurer) |
void |
configureMessageConverters(List<HttpMessageConverter<?>> converters) |
void |
configurePathMatch(PathMatchConfigurer configurer) |
InternalResourceViewResolver |
defaultViewResolver() |
MessageCodesResolver |
getMessageCodesResolver() |
LocaleResolver |
localeResolver() |
static RequestContextFilter |
requestContextFilter() |
ContentNegotiatingViewResolver |
viewResolver(BeanFactory beanFactory) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addArgumentResolvers, addCorsMappings, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getValidator
public WebMvcAutoConfigurationAdapter(WebMvcProperties mvcProperties, ListableBeanFactory beanFactory, ObjectProvider<HttpMessageConverters> messageConvertersProvider)
public void configureMessageConverters(List<HttpMessageConverter<?>> converters)
configureMessageConverters
in interface WebMvcConfigurer
public void configureAsyncSupport(AsyncSupportConfigurer configurer)
configureAsyncSupport
in interface WebMvcConfigurer
public void configurePathMatch(PathMatchConfigurer configurer)
configurePathMatch
in interface WebMvcConfigurer
public void configureContentNegotiation(ContentNegotiationConfigurer configurer)
configureContentNegotiation
in interface WebMvcConfigurer
@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()
public MessageCodesResolver getMessageCodesResolver()
getMessageCodesResolver
in interface WebMvcConfigurer
public void addFormatters(FormatterRegistry registry)
addFormatters
in interface 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 RequestContextFilter requestContextFilter()
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.