欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

There was an unexpected error (type=Internal Server Error, status=500). Could not parse as each: “us

程序员文章站 2022-03-03 17:31:42
...

There was an unexpected error (type=Internal Server Error, status=500).
Could not parse as each: “user:${users}” (template: “successqw” - line 15, col 24)

spring boot +Thymeleaf each时

<!--th:each每次遍历都会生成当前这个标签:3个h4-->
<h4 th:text="${user}"  th:each="user:${users}"></h4>

因为user后的:号是中文,所以错误