springboot配置了 thymeleaf 启动warning:Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf.
检查思路:
1. pom.xml中是否配置了,这个估计是和springboot版本有关,低版本如springboot1.5.3就要检查的多,高版本只需要将模板放到resources/templates/下就可以被扫描到。
2. 检查你的application.properties/yml中是否有如下配置。