配置拦截器
This commit is contained in:
parent
caff05b057
commit
71bb8cdab6
|
@ -23,7 +23,10 @@ public class InterceptorConfig implements WebMvcConfigurer {
|
|||
excludePath.add("/checkCode");
|
||||
excludePath.add("/sendCode");
|
||||
excludePath.add("/register");//注册
|
||||
excludePath.add("/register");
|
||||
excludePath.add("/apiSend");
|
||||
excludePath.add("/timeChange");
|
||||
excludePath.add("/timeGet");
|
||||
|
||||
excludePath.add("/index/modifyHead");
|
||||
registry.addInterceptor(tokenInterceptor)//注册拦截器
|
||||
.addPathPatterns("/**")//拦截所有请求
|
||||
|
|
Loading…
Reference in New Issue