tomcat环境下上传大文件遇到的问题及解决办法

在Server.xml中的Connector节中加入maxPostSize="0"

maxPostSize
The maximum size in bytes of the POST which will be handled by the container FORM URL parameter parsing. The limit can be disabled by setting this attribute to a value less than or equal to 0. If not specified, this attribute is set to 2097152 (2 megabytes).

引用路径: http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

你可能感兴趣的:(tomcat,File,upload,post)