From 68b2d8f594dbe06212d8bc5c27ca51c7c310de33 Mon Sep 17 00:00:00 2001 From: "USER-20220102CG\\noblelift" <546428999@qq.com> Date: Mon, 27 Mar 2023 10:31:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=8B=A6=E6=88=AA=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/nl/modules/security/satoken/SaTokenConfigure.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/acs/nladmin-system/src/main/java/org/nl/modules/security/satoken/SaTokenConfigure.java b/acs/nladmin-system/src/main/java/org/nl/modules/security/satoken/SaTokenConfigure.java index 6b8cf7f..ca4c66d 100644 --- a/acs/nladmin-system/src/main/java/org/nl/modules/security/satoken/SaTokenConfigure.java +++ b/acs/nladmin-system/src/main/java/org/nl/modules/security/satoken/SaTokenConfigure.java @@ -34,9 +34,9 @@ public class SaTokenConfigure implements WebMvcConfigurer { @Override public void addInterceptors(InterceptorRegistry registry) { // 注册 Sa-Token 拦截器,打开注解式鉴权功能 -// registry.addInterceptor(new SaInterceptor(handle -> StpUtil.checkLogin())) -// .addPathPatterns("/**") -// .excludePathPatterns(securityProperties.getExcludes()); // 白名单 + registry.addInterceptor(new SaInterceptor(handle -> StpUtil.checkLogin())) + .addPathPatterns("/**") + .excludePathPatterns(securityProperties.getExcludes()); // 白名单 } }