Thymeleaf 嵌套循环

 <label th:each="role:${roles}" class="check-box">
<input th:each="item:${sysAdmin.roles}" th:checked="${item.roleId == role.roleId}" name="role"
type="checkbox" th:value="${role.roleId}" th:text="${role.roleName}" th:disabled="${role.dataFlag == '1'}">

</label>
原文地址:https://www.cnblogs.com/yelanggu/p/13353081.html