tomcat further occurrences of HTTP header parsing errors will be logged at DEBUG level.

时间:2025-03-12 07:28:35

启动tomcat时看到日志上有异常

further occurrences of HTTP header parsing errors will be logged at DEBUG level.

百度很多博文都指向了一篇解析的很详细的博文:/codetomylaw/article/details/43407443


没啥耐心看了,等于说maxHttpHeaderSize默认配置上没有的,但默认值是8*1024 ,那我就调成了10*1024试试,然后就OK了,以后有时间再研究吧

修改tomcat   配置文件中的

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