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/下就可以被扫描到。

Cannot find template location: classpath:/templates/ (please add some templates or check your Thymel

2. 检查你的application.properties/yml中是否有如下配置。

Cannot find template location: classpath:/templates/ (please add some templates or check your Thymel

相关文章:

  • 2022-02-17
  • 2022-12-23
  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
  • 2021-10-30
  • 2021-07-05
猜你喜欢
  • 2022-12-23
  • 2021-06-30
  • 2022-02-16
  • 2021-06-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案