java.lang.IllegalArgumentException: Request header is too large 解决方案


错误描述:

java.lang.IllegalArgumentException: Request header is too large

问题分析:
请求头超过了tomcat的限值。本来post请求是没有参数大小限制,但是服务器有自己的默认大小。
解决方案:
(1) 修改 tomcat 的 server.xml 的配置文件,增加 请求字段长度。
 <Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"  maxPostSize="0" maxHttpHeaderSize ="102400" RIEncoding="UTF-8"/> 
处加上maxHttpHeaderSize ="102400"
maxPostSize设置为0,不限制


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



猜您在找 非常规解决方案之Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value idea生成JAVADOC 报java.lang.IllegalArgumentException解决方案[终极] 遇到 Request header is too large,你是如何解决的? java.lang.IllegalArgumentException: Invalid character found in the request target. 解决kylin报错:Failed to create dictionary on ., Caused by: java.lang.IllegalArgumentException: Too high cardinality is not suitable for dictionary java.lang.illegalArgumentException异常 java.lang.IllegalArgumentException: null Caused by: java.lang.IllegalArgumentException hibernate java.lang.IllegalArgumentException问题解决 Exception in thread "main" java.lang.IllegalArgumentException:解决方法
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM