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