Loading

Request header is too large

Request header is too large

请求头过长

请求本身是没有长度限制,但tomcat是有的,需要修改的tomcat的请求头大小限制即可

在server.xml中

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

加上maxHttpHeaderSize =”10240”

或者在springboot项目中

修改 application.yml

server:
	max-http-header-size: 102400
posted @ 2022-05-02 14:16  北方Cc  阅读(1289)  评论(0)    收藏  举报