JSP:
<form id="file_form" method="post" action="http://172.16.0.61:8080/Eagleflight/UploadImageAction/DdUpload.do"
enctype="multipart/form-data"><!-- 图片显示 上传完才能显示-->
<img id="imgurl1" style="width:59px;height:22px" >
<div>
<!-- 选择了图片后触发 用于应付后台添加到对应的实体类 因为文件上传不会排序 所以只能通过这个来 -->
<input type="hidden" id="IsCheck1" name="IsCheck1">
<input name="file" data-options="onChange:function(){$('#IsCheck1').val(1)}" style="width: 150px;height:22px;" class="easyui-filebox" buttonText="选择图片"/>
</div>
<!-- 由于表单不能刷新 所以这个onclick在上传完后能有效果 你可以在之后加刷新 -->
<a id="upload" οnclick="SealSignatureInputImage()" class="easyui-linkbutton"
style="width: 80%; height: 30px;">上传</a>
</form>
aciton 自己理解吧,不难懂
@ResponseBody@RequestMapping(value = "/DdUpload", method = { RequestMethod.POST})
public String DdUpload(final HttpServletRequest req, HttpServletResponse resp,
@RequestParam(value = "file") MultipartFile... files)