post数据过大时候java后台报错

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_29290295/article/details/82986762

 Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level. java.lang.IllegalArgumentException: Request header is too large

在tomcat配置中修改或者增加该配置即可。maxPostSize="0"表示无限制。

<Connector connectionTimeout="20000" port="8086" protocol="HTTP/1.1" redirectPort="8443" maxPostSize="0" maxHttpHeaderSize ="10240000"/>

猜你喜欢

转载自blog.csdn.net/qq_29290295/article/details/82986762