Programing/Framework
[spring boot] Cannot find template location: classpath:/templates/
나모찾기
2018. 11. 19. 17:57
스프링 부트에서 아래와 같은 메세지가 보인다면...
2018-11-19 17:44:57.150 WARN 15780 --- [ main] ion$DefaultTemplateResolverConfiguration : Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
스프링 부트 스타터 중에 템플릿을 implement 하고 있으나 템플릿이 없는지 확인해보자.
예)
implementation('org.springframework.boot:spring-boot-starter-thymeleaf')
곧 템플릿을 만들 것이라면,,,
resources 밑에 templates 디렉터리를 만들고 빈 템플릿 하나를 넣어주자.