thmeleaf 无法识别遍历数组
<table>
<tr th:each="grtInfo:${grtInfos}">
<td th:text="${grtInfos}"></td>
<td th:text="${grtInfo.name}"></td>
</tr>
</table>
thymeleaf将数组识别为字符串了,无法遍历,遍历取属性值时回报属性不存在。有没有大佬指点一下。
thmeleaf 无法识别遍历数组
<table>
<tr th:each="grtInfo:${grtInfos}">
<td th:text="${grtInfos}"></td>
<td th:text="${grtInfo.name}"></td>
</tr>
</table>
thymeleaf将数组识别为字符串了,无法遍历,遍历取属性值时回报属性不存在。有没有大佬指点一下。