struts2 上传文件大小限制 SizeLimitExceededException

非原创, 只做记录用, http://blog.csdn.net/zhoutao198712/archive/2008/10/19/3104755.aspx

 

org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (2953685) exceeds the configured maximum (171520)

 

在struts2配置文件中添加, 指定自己的最大值

 

<constant name="struts.multipart.maxSize" value="20971520"/>

你可能感兴趣的:(apache,.net,struts,Blog)