@Configuration
public class XssFilterConfig
extends java.lang.Object
构造器和说明 |
---|
XssFilterConfig() |
限定符和类型 | 方法和说明 |
---|---|
org.springframework.boot.web.servlet.FilterRegistrationBean<XssFilter> |
xssFilterRegistrationBean() |
@ConditionalOnExpression(value="#{\'true\'.equalsIgnoreCase(environment[\'security.xss.enabled\']) || environment[\'security.xss.enabled\']==null}") @Bean public org.springframework.boot.web.servlet.FilterRegistrationBean<XssFilter> xssFilterRegistrationBean()