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 |    9 ++++-----
 1 files changed, 4 insertions(+), 5 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 c5161c5..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
@@ -39,14 +39,13 @@
             throws ServletException, IOException
     {
         // 鍖垮悕璺緞鏀捐 榛樿鎷︽埅
-        boolean flag = false;
+        boolean flag = true;
+        PathMatcher pm = new AntPathMatcher();
         for (String anonymou : securityProperties.getAnonymous()) {
-            PathMatcher pm = new AntPathMatcher();
-            if (pm.matchStart(anonymou, request.getRequestURI())) {
-                flag = true;
+            if (pm.match(anonymou, request.getRequestURI())) {
+                flag = false;
                 break;
             }
-
         }
         if (flag) {
             LoginUser loginUser = tokenService.getLoginUser(request);

--
Gitblit v1.9.3