Commit e8076bd6 by “zcwang”

add: 登录态校验

parent 8f2e61a9
......@@ -15,6 +15,9 @@ public class WebMvcConfig implements WebMvcConfigurer {
@Autowired
private UserInterceptor userInterceptor;
@Autowired
private AdminUserLoginInterceptor adminUserLoginInterceptor;
/**
* 拦截器配置
*
......@@ -24,6 +27,7 @@ public class WebMvcConfig implements WebMvcConfigurer {
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(userInterceptor).addPathPatterns("/**").excludePathPatterns("/i/health")
.excludePathPatterns("/change/flow/getOperator", "/test/createToDo","/test/progressTodo","/test/submit");
registry.addInterceptor(adminUserLoginInterceptor).addPathPatterns("test/**");
}
}
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