1.后台通过查询将数据存入request中
request.setAttribute("assistantList", assistantList);
2.前端用c:forEach标签展示数据
<div id="setHandler" class="layui-col-md2 mtp15">
<form method="post" class="layui-form layui-form-pane">
<label class="layui-form-label" title="经手人">经手人</label>
<div class="layui-input-block">
<select id="handler" name="handler" lay-search>
<option value="">请选择</option>
<c:forEach items="${assistantList}" var="assistant" >
<option value="${assistant.user_id}">${assistant.user_name}</option>
</c:forEach>
</select>
</div>
</form>
</div>
3.效果如下图