exception processing, template error resolving template
程序员文章站
2022-08-10 09:42:16
错误信息:Exception processing template “/view/df”: Error resolving template “/view/df”, template might not exist or might not be accessible by any of the ......
错误信息: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
推荐阅读
-
exception processing, template error resolving template
-
An error happened during template parsing (template: “class path resource [templates/xxx.html]“)
-
MySQL安装Write configuration file 提示:configuration file template my.ini Error code-1
-
使用IET_latex_template中遇到的错误'Package pdftex.def Error: File `XXX-eps-converted-to.pdf' not found: using draft setting'
-
thymeleaf Exception processing template "xxx": Exception parsing document: template="xxx", line 6 - column 3报错解决的几种方法
-
[Linux] deepin系统添加PHP仓库源出错Error: could not find a distribution template for Deepin/stable
-
vue error:The template root requires exactly one element.
-
用thymeleaf作模板的项目打成jar包运行时报错:Error resolving template,template might not exist or might not be access
-
IntelliJ IDEA新建java文件报错: Unable to parse template "Class" Error Message : 0
-
exception processing, template error resolving template