错误:
maxHttpHeaderSize ="102400"
<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443" maxHttpHeaderSize ="102400"/>
在程序中发送post请求出现
tomcat: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).
tomcat:默认大小2097152,当maxPostSize=0时,不限制;maxPostSize=20971520时,为20M
修改server.xml maxPostSize 配置
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" maxPostSize="0"/>