1. 程式人生 > >關於tomcat不同版本的maxPostSize

關於tomcat不同版本的maxPostSize

tomcat7.0.63之前:
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).
設定為0和負數均可以代表不限制


tomcat7.0.63(包含)之後:
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 zero. If not specified, this attribute is set to 2097152 (2 megabytes).
不可以設定為0,只能是負數代表不限制
--------------------- 
作者:whatever8975757 
來源:CSDN 
原文:https://blog.csdn.net/whatever8975757/article/details/60576188?utm_source=copy 
版權宣告:本文為博主原創文章,轉載請附上博文連結!