报错信息如下
org.thymeleaf.exceptions.TemplateProcessingException: Could not parse as expression: " {type: 'numbers'}, {field: 'name', title: 'name'}, {field: 'id', title: 'id'}, {field: 'sex', title: 'sex'}, {field: 'pid', title: 'pid'}
解决方案
把cols后的[[ ]]变为
[
[
]
]
因为[[…]]之间的表达式在thymeleaf被认为是内联表达式,所以渲染错误