<form:checkboxes path="showsealType" items="${fns:getDictList('sealType')}" itemLabel="label" itemValue="value" htmlEscape="false" class="gen-input-width"/>
當選中多個時候
後臺存儲的爲 1,2,3,4
解決辦法
將path改爲String[] 類型,當後臺保存的時候,再從數據轉化爲字符串保存,
回顯的時候,再從字符串切割爲數組,放到該屬性上即可