thymeleaf selected动态回显

https://blog.csdn.net/u010739551/article/details/82784669

可用为:

<select  th:value="${questionBean.review}" id="review" name="review"   class="form-control"  >
 <option th:selected="${questionBean.review}=='0'" value="0">已发布</option>
 <option th:selected="${questionBean.review}=='1'" value="1">审核中</option>
 <option th:selected="${questionBean.review}=='2'" value="2">通过审核</option>
 <option th:selected="${questionBean.review}=='3'" value="3">未通过审核</option>
</select>