程序包 config.spring
类 WebConfig
java.lang.Object
config.spring.WebConfig
- 所有已实现的接口:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration
@EnableWebMvc
@ComponentScan(basePackages="com.publiccms.controller.web",
useDefaultFilters=false,
includeFilters=,
nameGenerator=FullBeanNameGenerator.class)
public class WebConfig
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
WebConfig WebServlet配置类
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
addInterceptors
(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) void
configureAsyncSupport
(org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer configurer) void
configurePathMatch
(org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer) org.springframework.web.servlet.ViewResolver
视图层解析器void
extendMessageConverters
(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) org.springframework.web.servlet.LocaleResolver
localeResolver
(org.springframework.core.env.Environment env) org.springframework.core.task.AsyncTaskExecutor
org.springframework.web.context.request.async.CallableProcessingInterceptor
拦截器org.springframework.web.servlet.ViewResolver
webViewResolver
(TemplateComponent templateComponent) 视图层解析器从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addErrorResponseInterceptors, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configureViewResolvers, extendHandlerExceptionResolvers, getMessageCodesResolver, getValidator
-
字段详细资料
-
webInterceptor
-
siteInterceptor
-
cacheComponent
-
-
构造器详细资料
-
WebConfig
public WebConfig()
-
-
方法详细资料
-
localeResolver
@Bean public org.springframework.web.servlet.LocaleResolver localeResolver(org.springframework.core.env.Environment env) -
defaultWebViewResolver
@Bean public org.springframework.web.servlet.ViewResolver defaultWebViewResolver()视图层解析器- 返回:
- default web viewresolver
-
webViewResolver
@Bean public org.springframework.web.servlet.ViewResolver webViewResolver(TemplateComponent templateComponent) 视图层解析器- 参数:
templateComponent
-- 返回:
- web viewresolver
-
webInterceptor
拦截器- 返回:
- web servlet interceptor
-
csrfInterceptor
-
addInterceptors
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) - 指定者:
addInterceptors
在接口中org.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
configureAsyncSupport
public void configureAsyncSupport(org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer configurer) - 指定者:
configureAsyncSupport
在接口中org.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
timeoutInterceptor
@Bean public org.springframework.web.context.request.async.CallableProcessingInterceptor timeoutInterceptor() -
taskExecutor
@Bean public org.springframework.core.task.AsyncTaskExecutor taskExecutor() -
extendMessageConverters
public void extendMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) - 指定者:
extendMessageConverters
在接口中org.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
configurePathMatch
public void configurePathMatch(org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer) - 指定者:
configurePathMatch
在接口中org.springframework.web.servlet.config.annotation.WebMvcConfigurer
-