有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java如何解决http11。校长:例外?

在购物车中添加物品时,我在项目中遇到此错误:

org.apache.coyote.http11.HeadersTooLargeException: An attempt was made to write more data to the response headers than there was room available in the buffer. Increase maxHttpHeaderSize on the connector or write less data into the response headers.


共 (1) 个答案

  1. # 1 楼答案

    我遇到了类似的问题,并发现这是由于在响应头中设置了大量cookie

    请尝试调试coyoteResponse对象,该对象包含headers字段以获取更多信息

    同时检查:HeadersTooLargeException - response headers