exception processing, template error resolving template

Posted 健身小白

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了exception processing, template error resolving template相关的知识,希望对你有一定的参考价值。

exception processing, template error resolving template
错误信息: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” 即可,然后再重新打包访问,问题解决了。该问题是由于路径的问题导致的。

以上是关于exception processing, template error resolving template的主要内容,如果未能解决你的问题,请参考以下文章

HTTP Status 500 - Request processing failed; nested exception is org.hibernate.exception.GenericJDBC

Request processing failed; nested exception is org.springframework.dao.InvalidDataAccessApiUsageExce

django 中间件process_exception 如果程序有异常就执行

Django 全局log process_exception中间件

java.lang.UnsupportedOperationException: Exception occurred during processing request: null

Python Selenium Exception AttributeError: "'Service' object has no attribute 'process'" in