hanker
Cannot resolve MVC view ... 404 Error 본문
Cannot resolve MVC view ... 404 Error 가 발생
index.html 파일을 읽기위해 Controller를 생성해서 return 값을 줄 때
Cannot resolve MVC view .. 라는 경고가 발생하며 404 Error가 떴다.
* 해결
1. pom.xml 파일에
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
추가해주면 경고가 사라지고 404 Error도 사라진다
2. 경로에 파일이 없을 때에도 경고가 뜬다.
이렇게 boot.html 파일을 만들어 주면 경고가 사라진다.