我正在使用thymeleaf标准方言并尝试在表单中呈现复选框列表。渲染没问题,但是,问题是我尝试使用thymeleaf#lists.contains()表达式实用程序方法将“checked”属性应用于复选框。所以我有一个包含以下字段的模型类:privateListtemplates;@FormParam("selectedTemplates")privateListselectedTemplates=Lists.newArrayList();Thymeleaf模板html片段:应选中的复选框之一的页面输出。(TemplateName)[4,5]4false如您所见,我打印了具有值[4,