2 u010353960 u010353960 于 2016.02.01 10:41 提问

SpringMVC在文件上传时出现错误

在使用SpringMVC上传文件时,有事出现一下异常

 二月 01, 2016 10:04:41 上午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [JeeCmsAdmin] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. null] with root cause
java.net.SocketTimeoutException
    at org.apache.coyote.http11.InternalAprInputBuffer.fill(InternalAprInputBuffer.java:607)
    at org.apache.coyote.http11.InternalAprInputBuffer$SocketInputBuffer.doRead(InternalAprInputBuffer.java:642)
    at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:124)
    at org.apache.coyote.http11.InternalAprInputBuffer.doRead(InternalAprInputBuffer.java:534)

Spring配置:

jar:commons-fileupload-1.3.1.jar

2个回答

Yiran8935
Yiran8935   2016.02.01 11:14

看看这个里面回答的两个链接里面的内容能不能帮到你

u010353960
u010353960 感谢在前,这两个我在谷歌中看过了,没什么帮助,总觉得是哪块配置的问题,在本地是没问题的,只有部署到服务器上才会出现
接近 2 年之前 回复
rui888
rui888   Ds   Rxr 2016.02.01 11:52
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!