본문 바로가기

JAVA/Thymeleaf

thymeleaf에 현재 1900년도 부터 현재 년도까지 표시하기

<select >   

<option th:each="i : ${#numbers.sequence(1900, #dates.year(#dates.createNow()))}" th:value="${i}" th:text="${i}">   </option>

</select>