본문 바로가기
Error

[Thymeleaf] TemplateInputException: Error resolving template...

by 지구 2021. 11. 9.

org.thymeleaf.exceptions.TemplateInputException: Error resolving template [members/createMemberForm], template might not exist or might not be accessible by any of the configured Template Resolvers


타임리프를 사용하여 프로젝트를 개발하던 중에 위와 같은 오류를 만났다.

여기서, `members/createMemberForm` 파일이 없으면 당연히 발생하는 오류겠지만

보다시피 나는 `members` 경로에 `createMemberForm` 파일이 존재해서 문제가 되었다.

 

결국 이 문제는, IntelliJ 에서 파일(자체)을 복붙하면 간혹 발생할 수 있는 문제인 것 같으며
아래와 같이 resource 우클릭 -> 'Synchronize 'resources' -> 프로젝트 build -> 프로젝트 run 하면 해결 된다.

 

그게 아니라면, 혹시 devtools 프레임워크가 반영되어 있는 프로젝트인지 확인하자.

implementation 'org.springframework.boot:spring-boot-devtools'

만일 이 경우에 해당한다면, 정적 리소스 파일을 수정한 뒤 서버를 재시작 해보자.. 😊

반응형

댓글