|
@@ -29,9 +29,8 @@ public class InterceptorConfig implements WebMvcConfigurer {
|
|
|
@Override
|
|
|
public void addInterceptors(InterceptorRegistry registry) {
|
|
|
// 拦截器PathPatterns通配符为两个"*"
|
|
|
- registry.addInterceptor(accessInterceptor())
|
|
|
- .addPathPatterns("/api/**")
|
|
|
- .excludePathPatterns("/", "/swagger-resources", "/api/app-api/device/record/list", "**.js", "**.css");
|
|
|
+ String[] excludes = new String[]{"/", "/error", "/webjars/**", "/doc.html", "/api/app-api/device/record/list"};
|
|
|
+ registry.addInterceptor(accessInterceptor()).addPathPatterns("/api/**").excludePathPatterns(excludes);
|
|
|
}
|
|
|
|
|
|
}
|