springboot在不配置thymeleaf相關屬性的情況下,會提示如下的問題
DefaultTemplateResolverConfiguration - Cannot find template location: classpath:/templates/
這是你隻需要在你的application.yml或application.properties檔案中添加如下配置即可消除
spring:
thymeleaf:
check-template-location: false