Class XssAutoConfiguration

java.lang.Object
com.codeupsoft.interceptor.xss.autoconfigure.XssAutoConfiguration
All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer

@AutoConfiguration @EnableConfigurationProperties(XssProperties.class) @ConditionalOnProperty(prefix="codeupsoft.interceptor.xss", value="auto-configure", havingValue="true", matchIfMissing=true) public class XssAutoConfiguration extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
XSS防护自动配置类.

该配置类负责注册XSS防护拦截器,当满足条件时自动生效.

Author:
codeupsoft
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
     

    Methods inherited from class Object

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

    Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer

    addArgumentResolvers, addCorsMappings, addErrorResponseInterceptors, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureApiVersioning, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
  • Constructor Details

    • XssAutoConfiguration

      public XssAutoConfiguration()
  • Method Details

    • addInterceptors

      public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
      Specified by:
      addInterceptors in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer