Spring boot 启动时,提示:Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
这种报警可以忽略,根据官方的解释,因为templates找不到相关的文件,发出的警报而已。
解决方法:
在配置文件 application.properties 中加入:
spring.thymeleaf.check-template=false
spring.thymeleaf.check-template-location=false