This commit is contained in:
Administrator
2024-05-15 14:48:00 +08:00
parent aa0de67d20
commit cdd73ee632
2 changed files with 2 additions and 3 deletions

View File

@@ -9,8 +9,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override @Override
public void addInterceptors(InterceptorRegistry registry) { public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(new AccessControlInterceptor())// 添加要拦截的路径 registry.addInterceptor(new AccessControlInterceptor()).excludePathPatterns("/user/login").excludePathPatterns("/forget/**").excludePathPatterns("/user/register"); // 排除不需要拦截的路径
.excludePathPatterns("/user/login").excludePathPatterns("/forget/**").excludePathPatterns("/user/register"); // 排除不需要拦截的路径
} }
} }

File diff suppressed because one or more lines are too long