一、倒序遍历对象
<li th:each="n : *{notifications}"> <h4 type="text" th:text="*{n.message}"></h4> </li> <li th:each = " i:$ {#numbers.sequence(notifications.size()-1,0,-1)}"> <h4 type =" text" th:text =" $ {notifications [i] .message}">< / h4> </li>
二、倒序输出数字 100..1
<li th:each="i : ${#numbers.sequence(100 , 1, -1)}">
<h4 type="text" th:text="${i}"></h4>
</li>