Commit a27781ff authored by 李庆科's avatar 李庆科

feat:还原代码

parent a41c2ac9
...@@ -42,11 +42,6 @@ public class TokenAndPermissionInterceptor implements HandlerInterceptor { ...@@ -42,11 +42,6 @@ public class TokenAndPermissionInterceptor implements HandlerInterceptor {
String requestURI = request.getRequestURI(); String requestURI = request.getRequestURI();
requestURI = requestURI.replaceAll("/+", "/"); requestURI = requestURI.replaceAll("/+", "/");
// 自定义白名单:/api/** 路径不需要认证
if (requestURI.startsWith("/api/")) {
requestURI = requestURI.substring(4);
}
Boolean noneSecurityFlag = AntPathMatcherUtil.getAntMatchFLag(requestURI, request.getContextPath(), Boolean noneSecurityFlag = AntPathMatcherUtil.getAntMatchFLag(requestURI, request.getContextPath(),
AuthConfigExpander.getNoneSecurityConfig()); AuthConfigExpander.getNoneSecurityConfig());
if (noneSecurityFlag) { if (noneSecurityFlag) {
......
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