Edit(别忘了把代码中的ID 和 name改成自己实际情况的)
<div class="form-group">
<label th:text="'是否展示(0未展示,1已展示)'"/>
<span style="color:red">*</span>
<div class="btn-group" data-toggle="buttons">
<input class="flat" type="radio" id="isDisplay" name="isDisplay" th:value="1" th:checked="${data==null||data.isDisplay==1}" >是</input>
<input class="flat" type="radio" id="isDisplay" name="isDisplay" th:value="0" th:checked="${data==null||data.isDisplay==0}" >否</input>
</div>
</div>
List
<td th:if="${dataItem.type} == 1" style="width:11%;" th:text="物理参数"/>
<td th:if="${dataItem.type} == 0" style="width:11%;" th:text="业务参数"/>
<a>
<a th:if="${dataItem.isPublic} != 1" th:id="isPublic" style="cursor: pointer ;display: inline" th:onclick="'javascript:nodeInfo.showNode('+${dataItem.id}+');'"><i class="btn btn-primary fa fa-anchor">发布</i></a>