From c978bef10f70c52fb862ebcddf35aaed417fe982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=AF=BC=EC=84=9D?= Date: Tue, 20 Aug 2024 06:10:43 +0900 Subject: [PATCH] =?UTF-8?q?feat=20:=20=EC=9B=90=EC=83=81=EB=B3=B5=EA=B5=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/store/itpick/backend/config/WebConfig.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/main/java/store/itpick/backend/config/WebConfig.java b/src/main/java/store/itpick/backend/config/WebConfig.java index 69af97d..450f06a 100644 --- a/src/main/java/store/itpick/backend/config/WebConfig.java +++ b/src/main/java/store/itpick/backend/config/WebConfig.java @@ -11,8 +11,6 @@ import org.springframework.web.method.support.HandlerMethodArgumentResolver; import org.springframework.web.servlet.config.annotation.InterceptorRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; -import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; - import java.util.List; @@ -56,16 +54,7 @@ public void addCorsMappings(CorsRegistry registry) { .allowCredentials(true); } - @Override - public void addViewControllers(ViewControllerRegistry registry) { - // 모든 경로에서 index.html을 반환하도록 설정 - registry.addViewController("/{spring:\\w+}") - .setViewName("forward:/index.html"); - registry.addViewController("/**/{spring:\\w+}") - .setViewName("forward:/index.html"); - registry.addViewController("/{spring:\\w+}/**{spring:?!(\\.js|\\.css|\\.png|\\.jpg)$}") - .setViewName("forward:/index.html"); - } +