<input type="checkbox" id="isAuto" th:attr="checked=(${user.getAutoSell()}==1?true:false)">
不容易,摸出来了。
thymeleaf控制checkbox的选中状态回显
原文:https://www.cnblogs.com/xiaoyao-blog/p/14668803.html