diff --git a/backend/src/main/java/io/metersphere/config/WebConfig.java b/backend/src/main/java/io/metersphere/config/WebConfig.java index 4b73b1452a..e745a2e187 100644 --- a/backend/src/main/java/io/metersphere/config/WebConfig.java +++ b/backend/src/main/java/io/metersphere/config/WebConfig.java @@ -1,21 +1,14 @@ package io.metersphere.config; -import io.metersphere.interceptor.TestInterceptor; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.client.HttpComponentsClientHttpRequestFactory; import org.springframework.web.client.RestTemplate; -import org.springframework.web.servlet.config.annotation.InterceptorRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; @Configuration public class WebConfig implements WebMvcConfigurer { - @Override - public void addInterceptors(InterceptorRegistry registry) { - registry.addInterceptor(new TestInterceptor()); - } - @Bean public RestTemplate restTemplate() { return new RestTemplate(); diff --git a/backend/src/main/java/io/metersphere/interceptor/TestInterceptor.java b/backend/src/main/java/io/metersphere/interceptor/TestInterceptor.java deleted file mode 100644 index 0894c12968..0000000000 --- a/backend/src/main/java/io/metersphere/interceptor/TestInterceptor.java +++ /dev/null @@ -1,17 +0,0 @@ -package io.metersphere.interceptor; - -import org.springframework.stereotype.Component; -import org.springframework.web.servlet.HandlerInterceptor; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -@Component -public class TestInterceptor implements HandlerInterceptor { - - @Override - public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { -// response.setHeader("Authentication-Status", "invalid"); - return true; - } -}