fix: 去除不要的白名单
This commit is contained in:
@@ -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/**",
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
/**
|
||||
* 构造函数,注入依赖
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user