<tr th:each="user,userStat:${users}"> userStat is a status variable with attributes such as index, count, size, current, even, odd, first, last, etc. If the status variable is not set explicitly, thymeleaf will default to "variable name + Stat" "'s state variable.
<tr th:each="user,userStat:${users}">
userStat is a status variable with attributes such as index, count, size, current, even, odd, first, last, etc. If the status variable is not set explicitly, thymeleaf will default to "variable name + Stat" "'s state variable.
The official document I read here is that the state variables are called iterStat by default. It is possible to test it yourself.