<select>
<option th:each="dict:${mList}" th:value="${dict.gid}" th:text="${dict.gname}">
</select>
mList为后端model传来的LIST变量名
th:value为下拉框数值
th:text为下拉框显示内容
<select>
<option th:each="dict:${mList}" th:value="${dict.gid}" th:text="${dict.gname}">
</select>
mList为后端model传来的LIST变量名
th:value为下拉框数值
th:text为下拉框显示内容