Browse Source

fix: 修改了拦截器

DingXiaoYu 2 years ago
parent
commit
ea9163ecf8

+ 2 - 2
src/main/java/com/seecoder/BlueWhale/configure/MyWebMvcConfig.java

@@ -25,8 +25,8 @@ public class MyWebMvcConfig implements WebMvcConfigurer {
     public void addInterceptors(InterceptorRegistry registry) {
     public void addInterceptors(InterceptorRegistry registry) {
         registry.addInterceptor(loginInterceptor)
         registry.addInterceptor(loginInterceptor)
                 .addPathPatterns("/**")
                 .addPathPatterns("/**")
-                .excludePathPatterns("/api/user/register")
-                .excludePathPatterns("/api/user/login")
+                .excludePathPatterns("/api/users/register")
+                .excludePathPatterns("/api/users/login")
                 .order(1);
                 .order(1);
     }
     }