@Configuration @Import(value=PluginMvcAutoConfiguration.PlugEnableWebMvcConfiguration.class) @EnableConfigurationProperties(value={org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties.class,org.springframework.boot.autoconfigure.web.ResourceProperties.class}) @Order(value=0) public static class PluginMvcAutoConfiguration.PlugMvcAutoConfigurationAdapter extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
| 构造器和说明 |
|---|
PlugMvcAutoConfigurationAdapter(org.springframework.boot.autoconfigure.web.ResourceProperties resourceProperties,
org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties mvcProperties,
org.springframework.beans.factory.ListableBeanFactory beanFactory,
org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.http.HttpMessageConverters> messageConvertersProvider,
org.springframework.beans.factory.ObjectProvider<cn.donting.plugin.spring.boot.starter.plugin.autoconfiguration.web.PluginMvcAutoConfiguration.ResourceHandlerRegistrationCustomizer> resourceHandlerRegistrationCustomizerProvider) |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
void |
configurePathMatch(org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer) |
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddArgumentResolvers, addCorsMappings, addInterceptors, addReturnValueHandlers, addViewControllers, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getValidatorpublic PlugMvcAutoConfigurationAdapter(org.springframework.boot.autoconfigure.web.ResourceProperties resourceProperties,
org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties mvcProperties,
org.springframework.beans.factory.ListableBeanFactory beanFactory,
org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.http.HttpMessageConverters> messageConvertersProvider,
org.springframework.beans.factory.ObjectProvider<cn.donting.plugin.spring.boot.starter.plugin.autoconfiguration.web.PluginMvcAutoConfiguration.ResourceHandlerRegistrationCustomizer> resourceHandlerRegistrationCustomizerProvider)
public void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
configureMessageConverters 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerpublic void configureAsyncSupport(org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer configurer)
configureAsyncSupport 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerpublic void configurePathMatch(org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer)
configurePathMatch 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerpublic void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
configureContentNegotiation 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer@Bean @ConditionalOnMissingBean public org.springframework.web.servlet.view.InternalResourceViewResolver defaultViewResolver()
@Bean @ConditionalOnMissingBean public org.springframework.web.servlet.view.BeanNameViewResolver beanNameViewResolver()
@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(prefix="spring.mvc",
name="locale")
public org.springframework.web.servlet.LocaleResolver localeResolver()
public org.springframework.validation.MessageCodesResolver getMessageCodesResolver()
getMessageCodesResolver 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerpublic void addFormatters(org.springframework.format.FormatterRegistry registry)
addFormatters 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerpublic void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
addResourceHandlers 在接口中 org.springframework.web.servlet.config.annotation.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 org.springframework.web.filter.RequestContextFilter requestContextFilter()
Copyright © 2020. All rights reserved.