Class JsonXSSConfig
java.lang.Object
tech.riemann.nif.starter.xss.JsonXSSConfig
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@AutoConfiguration
@ConditionalOnExpression("${nif.xss.enabled:true}")
@EnableConfigurationProperties(XSSConfigurationProperties.class)
public class JsonXSSConfig
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
XSS 自动配置类 (Jackson 3 适配版)
- Author:
- kerbores(kerbores@gmail.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterceptors(@NonNull org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) voidNutz Json 的 XSS 处理器初始化Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
JsonXSSConfig
public JsonXSSConfig()
-
-
Method Details
-
initNutzJson
@PostConstruct public void initNutzJson()Nutz Json 的 XSS 处理器初始化 -
addInterceptors
public void addInterceptors(@NonNull org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) - Specified by:
addInterceptorsin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-