<tr th:each="memeber, iterState : ${list}">
<td th:text="${member.mid}"></td>
<td th:text="${iterState.size}></td> // 대상의 size
<td th:text="${iterState.index}></td> // 대상의 인덱스번호
<td th:text="${iterState.odd or even}></td> // 짝 홀
<td th:text="${iterState.first or last}></td> // 첫번째 마지막
</tr>
https://html5boilerplate.com/ 에서 레이아웃 재사용을 위한 탬플릿을 사용할 수 있음.
<!-- https://mvnrepository.com/artifact/nz.net.ultraq.thymeleaf/thymeleaf-layout-dialect -->
<dependency>
<groupId>nz.net.ultraq.thymeleaf</groupId>
<artifactId>thymeleaf-layout-dialect</artifactId>
<version>2.2.1</version>
</dependency>