|
@ -34,9 +34,9 @@ public class SaTokenConfigure implements WebMvcConfigurer { |
|
|
@Override |
|
|
@Override |
|
|
public void addInterceptors(InterceptorRegistry registry) { |
|
|
public void addInterceptors(InterceptorRegistry registry) { |
|
|
// 注册 Sa-Token 拦截器,打开注解式鉴权功能
|
|
|
// 注册 Sa-Token 拦截器,打开注解式鉴权功能
|
|
|
// registry.addInterceptor(new SaInterceptor(handle -> StpUtil.checkLogin()))
|
|
|
registry.addInterceptor(new SaInterceptor(handle -> StpUtil.checkLogin())) |
|
|
// .addPathPatterns("/**")
|
|
|
.addPathPatterns("/**") |
|
|
// .excludePathPatterns(securityProperties.getExcludes()); // 白名单
|
|
|
.excludePathPatterns(securityProperties.getExcludes()); // 白名单
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|