后台数据

Tymeleaf遍历输出Key和Value
<tr th:each="item,cont:${content.printValues.values}">
<td th:text="${cont.current.key}"></td><!-- key-->
<td th:text="${cont.current.value}"></td><!-- value-->
</tr>

页面显示效果



<tr th:each="item,cont:${content.printValues.values}">
<td th:text="${cont.current.key}"></td><!-- key-->
<td th:text="${cont.current.value}"></td><!-- value-->
</tr>

