Commit 61909f93 authored by yaobaizheng's avatar yaobaizheng

添加拦截器

parent 07420eca
......@@ -52,9 +52,9 @@ public class ResourceConfig implements WebMvcConfigurer {
String[] excludePatterns = (String[]) ArrayUtils.addAll(excludeSwagger, excludeUrl);
System.out.println("自定义拦截器#############################################");
// registry.addInterceptor(loginInterceptor)
// .addPathPatterns("/**")
// .excludePathPatterns(excludePatterns);
registry.addInterceptor(loginInterceptor)
.addPathPatterns("/**")
.excludePathPatterns(excludePatterns);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment