类似于这样的错误:
Caused by: org.attoparser.ParseException: Could not parse as expression: "
{field: ‘id’, title: ‘ID’, fixed: ‘left’, unresize: true, sort: true}
, {field: ‘name’, title: ‘姓名’, edit: ‘text’, sort: true}
, {field: ‘phone’, title: ‘电话’, edit: ‘text’, sort: true}
, {field: ‘’, title: ‘操作’, toolbar: “#bar”}
请检查有没有"[[ ]]" 这样的符号的使用
thymeleaf把这种格式当做了内联表达式,显然不是我们想要的结果,也就会报出这意外的错误。
换行成:
[
[
]
]
即可。
如图: