程序包 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配置类
  • 字段详细资料

  • 构造器详细资料

    • 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

      @Bean public WebContextInterceptor webInterceptor()
      拦截器
      返回:
      web servlet interceptor
    • csrfInterceptor

      @Bean public CsrfInterceptor 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