新增SaRouterUtil,可优雅的路由拦截式鉴权

This commit is contained in:
shengzhang
2021-01-13 02:00:47 +08:00
parent 37bcee92ed
commit d1d25f4d49
9 changed files with 219 additions and 7 deletions

View File

@@ -31,7 +31,7 @@ public class MySaTokenConfig implements WebMvcConfigurer {
@Override
public void addInterceptors(InterceptorRegistry registry) {
// 注册注解拦截器
registry.addInterceptor(new SaAnnotationInterceptor()).addPathPatterns("/**"); // 全局拦截器
registry.addInterceptor(new SaAnnotationInterceptor()).addPathPatterns("/**");
}