Skip to content

Commit c978bef

Browse files
committed
feat : 원상복구
1 parent b2378ff commit c978bef

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/main/java/store/itpick/backend/config/WebConfig.java

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
1212
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
1313
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
14-
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
15-
1614

1715
import java.util.List;
1816

@@ -56,16 +54,7 @@ public void addCorsMappings(CorsRegistry registry) {
5654
.allowCredentials(true);
5755
}
5856

59-
@Override
60-
public void addViewControllers(ViewControllerRegistry registry) {
61-
// 모든 경로에서 index.html을 반환하도록 설정
62-
registry.addViewController("/{spring:\\w+}")
63-
.setViewName("forward:/index.html");
64-
registry.addViewController("/**/{spring:\\w+}")
65-
.setViewName("forward:/index.html");
66-
registry.addViewController("/{spring:\\w+}/**{spring:?!(\\.js|\\.css|\\.png|\\.jpg)$}")
67-
.setViewName("forward:/index.html");
68-
}
57+
6958

7059

7160

0 commit comments

Comments
 (0)