|
|
|
@ -27,9 +27,9 @@ public class InterceptorConfig implements WebMvcConfigurer {
|
|
|
|
|
public void addInterceptors(InterceptorRegistry registry) {
|
|
|
|
|
|
|
|
|
|
//添加要拦截的url
|
|
|
|
|
registry.addInterceptor(licenseCheckInterceptor)
|
|
|
|
|
//registry.addInterceptor(licenseCheckInterceptor)
|
|
|
|
|
// 拦截的路径
|
|
|
|
|
.addPathPatterns("/login");
|
|
|
|
|
// .addPathPatterns("/login");
|
|
|
|
|
// 放行的路径
|
|
|
|
|
// .excludePathPatterns("/admin/login");
|
|
|
|
|
}
|
|
|
|
|