【7.0.4】更新权限拦截器,针对url资源优化

pull/76/head
fengshuonan 2021-07-03 10:35:27 +08:00
parent 0a29492406
commit 49f7435d23
1 changed files with 1 additions and 0 deletions

View File

@ -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());