标签: thymeleaf
我想在百里香中循环1到5,类似于jsp代码:
<c: forEach begin = "1" end = "5" varStatus = "V"> </ c: forEach>.
答案 0 :(得分:9)
<th:block th:each="i: ${#numbers.sequence(1, 5)}"></th:block>