mirror of https://gitee.com/stylefeng/guns
【7.0.4】更新权限拦截器,针对url资源优化
parent
0a29492406
commit
49f7435d23
|
@ -41,6 +41,7 @@ public abstract class BaseSecurityInterceptor implements HandlerInterceptor {
|
|||
|
||||
// 1. 获取当前请求的路径
|
||||
String requestURI = request.getRequestURI();
|
||||
requestURI = requestURI.replaceAll("/+", "/");
|
||||
|
||||
// 2. 不需要权限过滤的资源,直接放行
|
||||
Boolean noneSecurityFlag = AntPathMatcherUtil.getAntMatchFLag(requestURI, request.getContextPath(), AuthConfigExpander.getNoneSecurityConfig());
|
||||
|
|
Loading…
Reference in New Issue