前台向后台action传的post参数一直为null或没传过去问题

转自:https://blog.csdn.net/whatever8975757/article/details/60576188

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 valueless 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 valueless than zero. If not specified, this attribute is set to 2097152 (2 megabytes).
不可以设置为0,只能是负数代表不限制

猜你喜欢

转载自blog.csdn.net/xiaoxiao_renhe/article/details/79789321