修复漏洞问题

This commit is contained in:
weiweiw 2024-08-09 17:36:33 +08:00
parent 61f8f72ebd
commit 099e668d55
1 changed files with 10 additions and 10 deletions

View File

@ -1,6 +1,6 @@
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.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@ -23,11 +23,11 @@ public class WebMvcConfig implements WebMvcConfigurer
.addPathPatterns("/**")
.excludePathPatterns(EXCLUDEURLS)
.order(-10);
//自定义拦截器
registry.addInterceptor(getParamSecureInterceptor())
.addPathPatterns("/**")
.excludePathPatterns(EXCLUDEURLS)
.order(-10);
// //自定义拦截器
// registry.addInterceptor(getParamSecureInterceptor())
// .addPathPatterns("/**")
// .excludePathPatterns(EXCLUDEURLS)
// .order(-10);
}
/**
@ -42,9 +42,9 @@ public class WebMvcConfig implements WebMvcConfigurer
/**
* 自定义参数拦截器
*/
public ParamSecureHandler getParamSecureInterceptor()
{
return new ParamSecureHandler();
}
// public ParamSecureHandler getParamSecureInterceptor()
// {
// return new ParamSecureHandler();
// }
}