IDEA request header is too large解决办法

        出现这个原因是post请求时,tomcat限制了post请求参数的大小,只需要在server.xml中找到Connector 节点并用以下代码覆盖    

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

    IDEA集成tomcat之后,也会出现此问题,解决办法同样找server.xml添加上述代码,server.xml位置如下图

    1.找到自己Tomcat所在目录

        点击运行按钮旁边的tomcat,进入Edit Cofigurations,红色框就是tomcat所在位置。

    IDEA request header is too large解决办法

2.server.xml文件就位于config目录下

        修改Connector节点即可。

IDEA request header is too large解决办法