Cannot resolve MVC view 'login'

Peter·2023년 5월 25일
0

에러일기

목록 보기
1/1

Cannot resolve MVC view 'login'
에러 발생하고 한참을 헤매다 해결했다.

resources/templates 아래에 멀쩡히 login.html파일이 있는데도 컨트롤러에서 인식을 못해 도대체 뭐가 문제일까 하고 프로젝트를 새로 만들었다.

build.gradle을 자세히 보니 에러가 났던 프로젝트에는

    implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'

라고 돼있었고

새로 만든 프로젝트에는

    implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'

라고 되어있었다.

에러가 발생한 프로젝트의 build.gradle의 dependencies의 thymeleaf종속성을

    implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'

이렇게 바꿔주니 에러가 해결됐다!!

profile
개발자 지망생. 일단 하고보자

0개의 댓글