Commit 5cb15f2e by “zcwang”

modify: 回调接口不校验登录

parent 275accfc
...@@ -20,6 +20,9 @@ public class WebMvcConfig implements WebMvcConfigurer{ ...@@ -20,6 +20,9 @@ public class WebMvcConfig implements WebMvcConfigurer{
@Autowired @Autowired
private LoginInterceptor loginInterceptor; private LoginInterceptor loginInterceptor;
@Autowired
private UserInterceptor userInterceptor;
/** /**
* 拦截器配置 * 拦截器配置
* *
...@@ -27,7 +30,8 @@ public class WebMvcConfig implements WebMvcConfigurer{ ...@@ -27,7 +30,8 @@ public class WebMvcConfig implements WebMvcConfigurer{
*/ */
@Override @Override
public void addInterceptors(InterceptorRegistry registry) { public void addInterceptors(InterceptorRegistry registry) {
// registry.addInterceptor(loginInterceptor).addPathPatterns("/**"); registry.addInterceptor(loginInterceptor).addPathPatterns("/**");
registry.addInterceptor(userInterceptor).addPathPatterns("/**").excludePathPatterns("/change/flow/getOperator");
} }
} }
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