@Configuration @ConditionalOnWebApplication @Import(value=RestMvcConfiguration.EnableWebMvcConfiguration.class) @EnableConfigurationProperties(value={org.springframework.boot.autoconfigure.web.WebMvcProperties.class,org.springframework.boot.autoconfigure.web.ResourceProperties.class}) protected static class RestMvcConfiguration.WebMvcAutoConfigurationAdapter extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
| 限定符 | 构造器和说明 |
|---|---|
protected |
WebMvcAutoConfigurationAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addFormatters(org.springframework.format.FormatterRegistry registry) |
void |
addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry 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(java.util.List<org.springframework.http.converter.HttpMessageConverter<?>> converters) |
org.springframework.format.Formatter<java.util.Date> |
dateFormatter() |
org.springframework.web.servlet.view.InternalResourceViewResolver |
defaultViewResolver() |
org.springframework.validation.MessageCodesResolver |
getMessageCodesResolver() |
org.springframework.web.servlet.LocaleResolver |
localeResolver() |
org.springframework.web.filter.RequestContextFilter |
requestContextFilter() |
org.springframework.web.servlet.view.ContentNegotiatingViewResolver |
viewResolver(org.springframework.beans.factory.BeanFactory beanFactory) |
addArgumentResolvers, addCorsMappings, addInterceptors, addResourceHandlers, addReturnValueHandlers, configureDefaultServletHandling, configureHandlerExceptionResolvers, configurePathMatch, configureViewResolvers, extendMessageConverters, getValidatorpublic void configureMessageConverters(java.util.List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
configureMessageConverters 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerconfigureMessageConverters 在类中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapterpublic void configureAsyncSupport(org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer configurer)
configureAsyncSupport 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerconfigureAsyncSupport 在类中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapterpublic void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
configureContentNegotiation 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerconfigureContentNegotiation 在类中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter@Bean @ConditionalOnMissingBean public org.springframework.web.servlet.view.InternalResourceViewResolver defaultViewResolver()
@Bean
@ConditionalOnMissingBean(value={org.springframework.web.context.request.RequestContextListener.class,org.springframework.web.filter.RequestContextFilter.class})
public org.springframework.web.filter.RequestContextFilter requestContextFilter()
@Bean @ConditionalOnBean(value=org.springframework.web.servlet.View.class) 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 public org.springframework.web.servlet.LocaleResolver localeResolver()
@Bean public org.springframework.format.Formatter<java.util.Date> dateFormatter()
public org.springframework.validation.MessageCodesResolver getMessageCodesResolver()
getMessageCodesResolver 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurergetMessageCodesResolver 在类中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapterpublic void addFormatters(org.springframework.format.FormatterRegistry registry)
addFormatters 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigureraddFormatters 在类中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapterpublic void addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry)
addViewControllers 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigureraddViewControllers 在类中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter