三个魔女闯古代,罐车爆炸,老鹰队球员名单
错误信息: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
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
h5页面唤起app如果没安装就跳转下载(iOS和Android)
浅析数据存储的三种方式 cookie sessionstorage localstorage 的异同
React Native超简单完整示例-tabs、页面导航、热更新、用户行为分析
React componentWillMount、componentDidMount、componentWillUpdate和componentDidUpdate生命周期函数的详解
详解canvas.toDataURL()报错的解决方案全都在这了
网友评论