[color=red]在Server.xml中的Connector节中加入maxPostSize="0"[/color]
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).
引用路径:[url]http://tomcat.apache.org/tomcat-5.5-doc/config/http.html[/url]
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).
引用路径:[url]http://tomcat.apache.org/tomcat-5.5-doc/config/http.html[/url]
本文介绍了如何在Tomcat的Server.xml文件中设置Connector节,将最大POST请求大小配置为无限制,以允许上传任意大小的文件。详细解释了配置属性maxPostSize的作用和默认值,并提供了示例代码。
309

被折叠的 条评论
为什么被折叠?



