How to check if list is empty using thymeleaf? February 23, 2023 by Tarik You can do as follows: <div th:if="${not #lists.isEmpty(tblUserList)}"> --content-- </div>