개발

spring boot - react

플리트우드 2020. 12. 21. 17:14

Springboot 프로젝트 만들어서 restController 문자열 하나 보냈는데 /error 뜰때

:springboot 프로젝트를 생성 web 추가한 경우, 정적인 웹리소스들은 resources>static아래 관리되도록 설정됨.html,css,js등의 정적컨텐츠는 static 루트폴더가 .web추가했으면 static은 자동으로 만들어지는데 선택안했다고 해도 pom 추가하고 static폴더 직접 만들어주면 . 에러는 static index.html만들어주면 해결