From 165236ec5631513db36e4e13b8afa4cf4f0aaffd Mon Sep 17 00:00:00 2001 From: liyongde <1419499670@qq.com> Date: Thu, 5 Feb 2026 11:22:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E9=99=A4=E4=B8=8D=E8=A6=81?= =?UTF-8?q?=E7=9A=84=E7=99=BD=E5=90=8D=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/nl/core/config/GlobalConfigure.java | 2 -- .../src/main/java/org/nl/core/config/MockInterceptor.java | 7 +------ 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/nl-web-app/src/main/java/org/nl/core/config/GlobalConfigure.java b/nl-web-app/src/main/java/org/nl/core/config/GlobalConfigure.java index 4b5f9fe..a51883f 100644 --- a/nl-web-app/src/main/java/org/nl/core/config/GlobalConfigure.java +++ b/nl-web-app/src/main/java/org/nl/core/config/GlobalConfigure.java @@ -107,7 +107,6 @@ public class GlobalConfigure implements WebMvcConfigurer { public static final String[] NO_CHECK_MOCK = { "/", - "/test", "/auth/session/**", "/auth/third/page", "/client/user/**", @@ -117,7 +116,6 @@ public class GlobalConfigure implements WebMvcConfigurer { "/gen/config/**", "/mobile/menu/**", "/mobile/module/**", - "/api/agv/status", "/api/device/**", "/api/agv/map/**", "/api/localStorage/**", diff --git a/nl-web-app/src/main/java/org/nl/core/config/MockInterceptor.java b/nl-web-app/src/main/java/org/nl/core/config/MockInterceptor.java index e203b0c..5b6b851 100644 --- a/nl-web-app/src/main/java/org/nl/core/config/MockInterceptor.java +++ b/nl-web-app/src/main/java/org/nl/core/config/MockInterceptor.java @@ -8,12 +8,8 @@ import org.nl.tool.mock.core.handle.MockService; import org.nl.tool.mock.modular.mockconfig.entity.MockConfig; import org.springframework.http.HttpStatus; import org.springframework.stereotype.Component; -import org.springframework.util.AntPathMatcher; -import org.springframework.util.PathMatcher; -import org.springframework.util.StringUtils; import org.springframework.web.servlet.HandlerInterceptor; -import java.util.List; import java.util.Optional; /** @@ -34,8 +30,7 @@ public class MockInterceptor implements HandlerInterceptor { private final MockService mockService; private final MockConfigProperties properties; - private final PathMatcher pathMatcher = new AntPathMatcher(); - + /** * 构造函数,注入依赖 *