From a430809e868d2e3c81d97f6359c01facc340189a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90li?= <15040126243@163.com> Date: Thu, 22 Sep 2022 13:16:36 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20satoken=20?= =?UTF-8?q?=E9=89=B4=E6=9D=83=E6=8B=A6=E6=88=AA=E5=99=A8=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=A4=9A=E6=AC=A1=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ruoyi/gateway/filter/AuthFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-gateway/src/main/java/com/ruoyi/gateway/filter/AuthFilter.java b/ruoyi-gateway/src/main/java/com/ruoyi/gateway/filter/AuthFilter.java index b8d73cc6..dd93f7c3 100644 --- a/ruoyi-gateway/src/main/java/com/ruoyi/gateway/filter/AuthFilter.java +++ b/ruoyi-gateway/src/main/java/com/ruoyi/gateway/filter/AuthFilter.java @@ -25,12 +25,12 @@ public class AuthFilter { return new SaReactorFilter() // 拦截地址 .addInclude("/**") + .setExcludeList(ignoreWhite.getWhites()) .addExclude("/favicon.ico", "/actuator/**") // 鉴权方法:每次访问进入 .setAuth(obj -> { // 登录校验 -- 拦截所有路由 SaRouter.match("/**") - .notMatch(ignoreWhite.getWhites()) .check(r -> { // 检查是否登录 是否有token StpUtil.checkLogin();