How can I format the number string as 4digit format using thymeleaf. Eg. 5 - > 0005
Format the string using number format. As follow :
th:text="${#numbers.formatInteger(num,5)}"