How to check if list is empty using thymeleaf?
Or simply:
<div th:if="${!myList.empty}">
With Thymeleaf 3.x.x you can validate list more elegant:
<div th:if="${tblUserList!=null and !tblUserList.empty}"></div>
or
<div th:if="${tblUserList!=null and !tblUserList.isEmpty()}"></div>
You can do as follows:
<div th:if="${not #lists.isEmpty(tblUserList)}">
--content--
</div>