くらげになりたい。

くらげのようにふわふわ生きたい日曜プログラマなブログ。趣味の備忘録です。

Thymeleaf

Thymeleafのチートシート[随時更新予定]

Thymeleaf便利。調べたりしたことをφ(..)メモメモ リスト要素を繰り返す(th:each) <div th:each="item : ${list}"> <p th:text="${item.name}">要素</p> </div> <div th:each="item,stat : ${list}"> <p th:text="${item.name}">要素</p> <p th:text="${stat.index}">0始まりの現在の「繰り返しインデックス」</p> </div>