@Configuration @EnableWebMvc @ComponentScan(basePackages="com.publiccms.controller.web", useDefaultFilters=false, includeFilters=, nameGenerator=FullBeanNameGenerator.class) public class WebConfig extends java.lang.Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
限定符和类型 | 字段和说明 |
---|---|
private CacheComponent |
cacheComponent |
private SiteInterceptor |
siteInterceptor |
private WebContextInterceptor |
webInterceptor |
构造器和说明 |
---|
WebConfig() |
限定符和类型 | 方法和说明 |
---|---|
void |
addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) |
void |
configureAsyncSupport(org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer configurer) |
CsrfInterceptor |
csrfInterceptor() |
org.springframework.web.servlet.ViewResolver |
defaultWebViewResolver()
视图层解析器
|
void |
extendMessageConverters(java.util.List<org.springframework.http.converter.HttpMessageConverter<?>> converters) |
org.springframework.web.servlet.LocaleResolver |
localeResolver(org.springframework.core.env.Environment env) |
org.springframework.core.task.AsyncTaskExecutor |
taskExecutor() |
org.springframework.web.context.request.async.CallableProcessingInterceptor |
timeoutInterceptor() |
WebContextInterceptor |
webInterceptor()
拦截器
|
org.springframework.web.servlet.ViewResolver |
webViewResolver(TemplateComponent templateComponent)
视图层解析器
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addArgumentResolvers, addCorsMappings, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, getMessageCodesResolver, getValidator
private WebContextInterceptor webInterceptor
private SiteInterceptor siteInterceptor
private CacheComponent cacheComponent
@Bean public org.springframework.web.servlet.LocaleResolver localeResolver(org.springframework.core.env.Environment env)
@Bean public org.springframework.web.servlet.ViewResolver defaultWebViewResolver()
@Bean public org.springframework.web.servlet.ViewResolver webViewResolver(TemplateComponent templateComponent)
templateComponent
- @Bean public WebContextInterceptor webInterceptor()
@Bean public CsrfInterceptor csrfInterceptor()
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
addInterceptors
在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public void configureAsyncSupport(org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer configurer)
configureAsyncSupport
在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Bean public org.springframework.web.context.request.async.CallableProcessingInterceptor timeoutInterceptor()
@Bean public org.springframework.core.task.AsyncTaskExecutor taskExecutor()
public void extendMessageConverters(java.util.List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
extendMessageConverters
在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer