【发布时间】:2016-02-04 11:08:10
【问题描述】:
我正在尝试在我的应用程序中上传文件。文件大小为 2055 kb。上传文件后。它抛出的异常是:
04-Feb-2016 15:42:41.141 INFO [http-nio-8084-exec-78] com.opensymphony.xwork2.util.logging.commons.CommonsLogger.info Unable to find 'struts.multipart.saveDir' property setting. Defaulting to javax.servlet.context.tempdir
04-Feb-2016 15:42:41.203 WARNING [http-nio-8084-exec-78] com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn Request exceeded size limit!"
org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (2104281) exceeds the configured maximum (2097152)
我正在使用 Struts 框架。
【问题讨论】:
-
你用的是什么服务器,Tomcat?
-
被拒绝,因为它的大小 (2104281) 超过了配置的最大值 (2097152) - 配置最大值。
标签: file-upload configuration struts2