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()); // 白名单 } }