暂时经常用的只有一种
1、获得controller 层传来的数据 例如 time
2、直接上代码 你懂得 option中 加 selected 为默认选中
<select id="xx" >
<c:forEach items="${xxx}" var="pin">
<option value ="${pin}" <c:if test="${time eq pin}">selected</c:if>>${pin}
</option>
</c:forEach>
</select>
转载于:https://blog.51cto.com/252254769/1725309