application/x-www-form-urlencoded 的contentType,POST数据内容过大,导致tomcat的request取不到参数

如题,

可通过设置tomcat的connector的参数

server.xml中的connector中加上属性 maxPostSize="20971520"

maxPostSize默认值为2097152(2 megabytes),改完之后为20megabytes

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

原文地址:https://www.cnblogs.com/silentjesse/p/4387033.html