1. 程式人生 > >Error parsing HTTP request header Larger錯誤解決方法

Error parsing HTTP request header Larger錯誤解決方法

prop tom 緩沖區 ger connect ctp boot time conn

在tomcat裏進行配置

原因是Tomcat的header緩沖區大小不夠,只需要在server.xml中增加maxHttpHeaderSize字段即可:

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

在SpringBoot裏application.properties配置

技術分享圖片

Error parsing HTTP request header Larger錯誤解決方法