更新拦截器
This commit is contained in:
@@ -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()); // 白名单
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user