类 JrackWebAutoConfiguration

java.lang.Object
cn.jrack.springboot.web.config.JrackWebAutoConfiguration
所有已实现的接口:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer

@Configuration @EnableConfigurationProperties({JrackWebProperties.class,JrackXssProperties.class}) public class JrackWebAutoConfiguration extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
  • 构造器详细资料

    • JrackWebAutoConfiguration

      public JrackWebAutoConfiguration()
  • 方法详细资料

    • configurePathMatch

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

      @Bean public RestControllerResponseAdvice restControllerResponseAdvice()
    • addInterceptors

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

      @Bean public GlobalExceptionHandler globalExceptionHandler()
    • globalResponseBodyHandler

      @Bean public GlobalResponseBodyHandler globalResponseBodyHandler()
    • 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(JrackXssProperties properties, org.springframework.util.PathMatcher pathMatcher)
      创建 XssFilter Bean,解决 Xss 安全问题
    • requestBodyCacheFilter

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