Quellcode durchsuchen

fix: 修改了拦截器

DingXiaoYu vor 2 Jahren
Ursprung
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) {
         registry.addInterceptor(loginInterceptor)
                 .addPathPatterns("/**")
-                .excludePathPatterns("/api/user/register")
-                .excludePathPatterns("/api/user/login")
+                .excludePathPatterns("/api/users/register")
+                .excludePathPatterns("/api/users/login")
                 .order(1);
     }