From 700232952fe27bc9a19d2e551a51a439cfa1e4c2 Mon Sep 17 00:00:00 2001 From: xuyuxiang Date: Thu, 9 Mar 2023 15:24:35 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=9B=B4=E6=96=B0=E3=80=91SaToken?= =?UTF-8?q?=E6=B3=A8=E8=A7=A3=E6=8B=A6=E6=88=AA=E5=99=A8=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E8=BF=87=E6=97=B6=E7=9A=84=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/vip/xiaonuo/auth/core/config/AuthConfigure.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/snowy-plugin/snowy-plugin-auth/src/main/java/vip/xiaonuo/auth/core/config/AuthConfigure.java b/snowy-plugin/snowy-plugin-auth/src/main/java/vip/xiaonuo/auth/core/config/AuthConfigure.java index 7c2fd1bb..60ff38ff 100644 --- a/snowy-plugin/snowy-plugin-auth/src/main/java/vip/xiaonuo/auth/core/config/AuthConfigure.java +++ b/snowy-plugin/snowy-plugin-auth/src/main/java/vip/xiaonuo/auth/core/config/AuthConfigure.java @@ -13,6 +13,7 @@ package vip.xiaonuo.auth.core.config; import cn.dev33.satoken.interceptor.SaAnnotationInterceptor; +import cn.dev33.satoken.interceptor.SaInterceptor; import cn.dev33.satoken.stp.StpInterface; import cn.dev33.satoken.stp.StpLogic; import cn.dev33.satoken.strategy.SaStrategy; @@ -66,7 +67,7 @@ public class AuthConfigure implements WebMvcConfigurer { @Override public void addInterceptors(InterceptorRegistry registry) { // 注册注解拦截器,并排除不需要注解鉴权的接口地址 (与登录拦截器无关,只是说明哪些接口不需要被拦截器拦截,此处都拦截) - registry.addInterceptor(new SaAnnotationInterceptor()).addPathPatterns("/**"); + registry.addInterceptor(new SaInterceptor()).addPathPatterns("/**"); } @Bean("stpLogic")