tomcat的上传限制

http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

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).

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

原文地址:https://www.cnblogs.com/huqingyu/p/1423224.html