File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
src/main/java/store/itpick/backend/config Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 11
11
import org .springframework .web .method .support .HandlerMethodArgumentResolver ;
12
12
import org .springframework .web .servlet .config .annotation .InterceptorRegistry ;
13
13
import org .springframework .web .servlet .config .annotation .WebMvcConfigurer ;
14
- import org .springframework .web .servlet .config .annotation .ViewControllerRegistry ;
15
-
16
14
17
15
import java .util .List ;
18
16
@@ -56,16 +54,7 @@ public void addCorsMappings(CorsRegistry registry) {
56
54
.allowCredentials (true );
57
55
}
58
56
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
+
69
58
70
59
71
60
You can’t perform that action at this time.
0 commit comments