配置拦截器

This commit is contained in:
Cool 2024-07-05 14:45:57 +08:00
parent caff05b057
commit 71bb8cdab6
1 changed files with 4 additions and 1 deletions

View File

@ -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("/**")//拦截所有请求