原文:SpringBoot+Thyemleaf报错Template might not exist or might not be accessible

第一次搭建SpringBoot Thyemleaf项目,就遇见这个错误,所以记录一下 出现这个错误大致从以下几个方面排除 application.yml的配置问题 pom.xml导入,需导入以下依赖 上述配置之后,执行maven clean maven install。 ...

2019-10-28 13:53 0 335 推荐指数:

查看详情

template might not exist or might not be accessible by any of the configured

报这个错的前提是在springboot的项目中使用了thymeleaf模版或freemarker模版。 然后原因一般有二: 1.真的没有这个模版文件,或是模版文件路径不正确。 2.在非模版页面的请求中没有使用@RestController或@ResponseBody注解,或是反过来,在模版 ...

Sat May 09 14:55:00 CST 2020 0 14854
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM