The error message is as follows
Reason:
because the expression between [[…]] is considered an inline expression in thymeleaf, rendering error occurs
Solution 1:
change [[]] after cols to [[]]
Solution 2:
in <script type=“text/javascript” > Add th: inline = “None”
<script type="text/javascript" th:inline="none">