<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Lists Utility Class in Thymeleaf</title>
</head>
<body>

size: <span th:text="${#lists.size(myList)}"/>

</body>
</html>