liu 1 年之前
父节点
当前提交
5cc44157b8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/template/core/JwtlnterceptorConfig.java

+ 1 - 1
src/main/java/com/template/core/JwtlnterceptorConfig.java

@@ -14,7 +14,7 @@ public class JwtlnterceptorConfig implements WebMvcConfigurer {
         //目前测试下来 使用 /**所有的话,response.sendError浏览器获取不到响应的信息
         //默认拦截所有路径
         registry.addInterceptor(authenticationInterceptor())
-                .addPathPatterns("/api0/**");
+                .addPathPatterns("/api/**");
         //endregion
     }