修复漏洞问题
This commit is contained in:
parent
61f8f72ebd
commit
099e668d55
|
|
@ -1,6 +1,6 @@
|
||||||
package com.bonus.common.security.config;
|
package com.bonus.common.security.config;
|
||||||
|
|
||||||
import com.bonus.common.security.interceptor.ParamSecureHandler;
|
//import com.bonus.common.security.interceptor.ParamSecureHandler;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
||||||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
||||||
|
|
@ -23,11 +23,11 @@ public class WebMvcConfig implements WebMvcConfigurer
|
||||||
.addPathPatterns("/**")
|
.addPathPatterns("/**")
|
||||||
.excludePathPatterns(EXCLUDEURLS)
|
.excludePathPatterns(EXCLUDEURLS)
|
||||||
.order(-10);
|
.order(-10);
|
||||||
//自定义拦截器
|
// //自定义拦截器
|
||||||
registry.addInterceptor(getParamSecureInterceptor())
|
// registry.addInterceptor(getParamSecureInterceptor())
|
||||||
.addPathPatterns("/**")
|
// .addPathPatterns("/**")
|
||||||
.excludePathPatterns(EXCLUDEURLS)
|
// .excludePathPatterns(EXCLUDEURLS)
|
||||||
.order(-10);
|
// .order(-10);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -42,9 +42,9 @@ public class WebMvcConfig implements WebMvcConfigurer
|
||||||
/**
|
/**
|
||||||
* 自定义参数拦截器
|
* 自定义参数拦截器
|
||||||
*/
|
*/
|
||||||
public ParamSecureHandler getParamSecureInterceptor()
|
// public ParamSecureHandler getParamSecureInterceptor()
|
||||||
{
|
// {
|
||||||
return new ParamSecureHandler();
|
// return new ParamSecureHandler();
|
||||||
}
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue