Commit e008c174 authored by zengtianlai3's avatar zengtianlai3

Merge remote-tracking branch 'origin/for-yx' into for-yx

parents 4b73783d 25932961
package iot.sixiang.license.xss;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
......@@ -11,12 +12,13 @@ import org.springframework.context.annotation.DependsOn;
* @Description
*/
@Configuration
@Slf4j
public class XSSFilterConfig {
@Bean
@DependsOn("xssFilter")
public FilterRegistrationBean filterRegistrationBean() {
System.out.println("===================filterRegistrationBean");
log.info("===================filterRegistrationBean");
FilterRegistrationBean registration = new FilterRegistrationBean();
registration.setFilter(new XssFilter());
registration.addUrlPatterns("/*");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment