From aed8969498eb8fc39f8b461104f05009fe8533e1 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期日, 26 九月 2021 15:37:40 +0800 Subject: [PATCH] remove 移除无用配置类 --- ruoyi-framework/src/main/java/com/ruoyi/framework/security/filter/JwtAuthenticationTokenFilter.java | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/security/filter/JwtAuthenticationTokenFilter.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/security/filter/JwtAuthenticationTokenFilter.java index b46a8ce..aea860c 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/security/filter/JwtAuthenticationTokenFilter.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/security/filter/JwtAuthenticationTokenFilter.java @@ -40,13 +40,12 @@ { // 鍖垮悕璺緞鏀捐 榛樿鎷︽埅 boolean flag = true; + PathMatcher pm = new AntPathMatcher(); for (String anonymou : securityProperties.getAnonymous()) { - PathMatcher pm = new AntPathMatcher(); - if (pm.matchStart(anonymou, request.getRequestURI())) { + if (pm.match(anonymou, request.getRequestURI())) { flag = false; break; } - } if (flag) { LoginUser loginUser = tokenService.getLoginUser(request); -- Gitblit v1.9.3