最近在用springboot+thymeleaf 做网站但是每次访问经常报错,时好时坏,不知道什么原因,

2018-04-0400:11:20.061ERROR2136---[nio-8082-exec-7]org.thymeleaf.TemplateEngine:[THYM... 2018-04-04 00:11:20.061 ERROR 2136 --- [nio-8082-exec-7] org.thymeleaf.TemplateEngine : [THYMELEAF][http-nio-8082-exec-7] Exception processing template "list": An error happened during template parsing (template: "class path resource [templates/list.html]")org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "class path resource [templates/list.html]") at org.thymeleaf.templateparser.markup.AbstractMarkupTemplateParser.parse(AbstractMarkupTemplateParser.java:241) ~[thymeleaf-3.0.9.RELEASE.jar:3.0.9.RELEASE] at org.thymeleaf.templateparser.markup.AbstractMarkupTemplateParser.parseStandalone(AbstractMarkupTemplateParser.java:100) ~[thymeleaf-3.0.9.RELEASE.jar:3.0.9.RELEASE] 展开
 我来答
百度网友6f20dd2bc
2019-09-16
知道答主
回答量:3
采纳率:0%
帮助的人:2105
展开全部
我的答案可能不能解决所有人的问题,首先在后台打印一下数据,确认不是后台的错误,前端页面的错误一般是由于私有属性造成的,解决办法就是调用get方法,如:
<tr th:each="user:${emps}">
<th scope="row" th:text="${user.getId()}"></th>
<td th:text="${user.getName()}"></td>
<td th:text="${user.getEmail()}"></td>
</tr>
长思忆兮f
2018-04-08
知道答主
回答量:1
采纳率:100%
帮助的人:861
展开全部
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Sun Apr 08 10:47:03 CST 2018
There was an unexpected error (type=Internal Server Error, status=500).
Error
resolving template "books_upload", template might not exist or might
not be accessible by any of the configured Template Resolvers
同问????
本回答被网友采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式