java如何模拟多端口异常
我得到一个例外:
WARN exceptions - Handler execution resulted in exception
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. Stream ended unexpectedly
at org.springframework.web.multipart.commons.CommonsMultipartResolver.parseRequest(CommonsMultipartResolver.java:163)
at org.springframework.web.multipart.commons.CommonsMultipartResolver.resolveMultipart(CommonsMultipartResolver.java:139)
在文件上传过程中,我不知道在我的应用程序中可以重复什么。你知道这方面的工具吗?或者你能给我一些建议吗
# 1 楼答案
你检查过spring's unit test了吗