org.thymeleaf.exceptions.TemplateInputException: Error resolving template [yourpage], template might

版权声明:本文为博主原创文章,未经博主允许不得私自转载。 https://blog.csdn.net/QingHe97/article/details/89950649

前言:

“鸟欲高飞先振翅,人求上进先读书。”

报错:org.thymeleaf.exceptions.TemplateInputException: Error resolving template [userlist], template might not exist or might not be accessible by any of the configured Template Resolvers

错误原因: thymeleaf模板默认是放在templates下,可能由于你在配置文件application.yml或使用的application.properties文件中配置了
在这里插入图片描述
或者是如果你在templates文件下创建了文件夹,如下情况:
在这里插入图片描述
解决方案: 如果是路径单词写错了,改过来就好了,如果是第二种的话,进行如下修改
在这里插入图片描述
基本是这两种情况,如果以上方案对你无效 那你继续百度0.0

猜你喜欢

转载自blog.csdn.net/QingHe97/article/details/89950649
今日推荐