类 DmxWebAutoConfiguration

java.lang.Object
cn.daimaxia.framework.web.config.DmxWebAutoConfiguration
所有已实现的接口:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer

@Configuration @EnableConfigurationProperties({WebProperties.class,XssProperties.class}) public class DmxWebAutoConfiguration extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
     
    void
    configurePathMatch(org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer)
     
    org.springframework.boot.web.servlet.FilterRegistrationBean<org.springframework.web.filter.CorsFilter>
    创建 CorsFilter Bean,解决跨域问题
    org.springframework.boot.web.servlet.FilterRegistrationBean<CacheRequestBodyFilter>
    创建 RequestBodyCacheFilter Bean,可重复读取请求内容
    org.springframework.boot.web.servlet.FilterRegistrationBean<XssFilter>
    xssFilter(XssProperties properties, org.springframework.util.PathMatcher pathMatcher)
    创建 XssFilter Bean,解决 Xss 安全问题

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    从接口继承的方法 org.springframework.web.servlet.config.annotation.WebMvcConfigurer

    addArgumentResolvers, addCorsMappings, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
  • 构造器详细资料

    • DmxWebAutoConfiguration

      public DmxWebAutoConfiguration()
  • 方法详细资料

    • configurePathMatch

      public void configurePathMatch(org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer)
      指定者:
      configurePathMatch 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • addInterceptors

      public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
      指定者:
      addInterceptors 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • corsFilterBean

      @Bean public org.springframework.boot.web.servlet.FilterRegistrationBean<org.springframework.web.filter.CorsFilter> corsFilterBean()
      创建 CorsFilter Bean,解决跨域问题
    • xssFilter

      @Bean public org.springframework.boot.web.servlet.FilterRegistrationBean<XssFilter> xssFilter(XssProperties properties, org.springframework.util.PathMatcher pathMatcher)
      创建 XssFilter Bean,解决 Xss 安全问题
    • requestBodyCacheFilter

      @Bean public org.springframework.boot.web.servlet.FilterRegistrationBean<CacheRequestBodyFilter> requestBodyCacheFilter()
      创建 RequestBodyCacheFilter Bean,可重复读取请求内容