当前位置: 移动技术网 > IT编程>网页制作>Html5 > exception processing, template error resolving template

exception processing, template error resolving template

2019年01月19日  | 移动技术网IT编程  | 我要评论

三个魔女闯古代,罐车爆炸,老鹰队球员名单

错误信息:exception processing template “/view/df”: error resolving template “/view/df”, template might not exist or might not be accessible by any of the configured template resolvers
org.thymeleaf.exceptions.templateinputexception: error resolving template “/view/df”, template might not exist or might not be accessible by any of the configured template resolvers

错误描述:再开发环境下,访问不出错。打成jar包后运行出错,经过一番查看,最终找到原因。
特别说明该项目我是用的是thymeleaf的th标签。
原因:在控制器中返回的视图路径如下,return “/view/df” 修改前,修改为return “view/df” 即可,然后再重新打包访问,问题解决了。该问题是由于路径的问题导致的。

参考博客:
https://blog.csdn.net/lin_xiaofeng/article/details/79122053
https://blog.csdn.net/publiclyaccessible/article/details/79726360

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网