如何修改struts上传文件大小

报错:the request was rejected because its size (3145728) exceeds the configured maximum (2097152)

因为:struts2默认的最大上传文件大小为2097152 B(2M),所以想要改变默认大小,即必须修改struts.xml如下:










1000000000



/upload

你可能感兴趣的:(Java框架)