<select style=‘width: 148.15px‘ name="dlrlx" th:field="*{Ygdly.dlrlx}"> <option th:each="dlrlxitem : ${dlrlxs}" th:text="${dlrlxitem.mc}" th:value="${dlrlxitem.bm}"></option> </select>
th:field="*{Ygdly.dlrlx}" 这个代表要匹配的数据。
原文:https://www.cnblogs.com/hfultrastrong/p/9186952.html