9

Springboot的Web应用中HTTP请求头RequestHeader过大

 3 years ago
source link: https://www.pkslow.com/archives/springboot-http-request-header-too-large
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
技术之前,先读诗书:

低声问向谁行宿,城上已三更。

在开发过程中,有时会遇到需要传很大的请求头的情况,即Http Request Header过大。这里可能会报以下错误:

java.lang.IllegalArgumentException: Request header is too large
TooLongFrameException: HTTP header is larger than 8192 bytes

这里只需要配置一个参数即可,具体大小根据自己的需要来配置:

server.max-http-header-size=80KB

欢迎关注微信公众号<南瓜慢说>,将持续为你更新...

推荐阅读:
如何制定切实可行的计划并好好执行
容器技术(Docker-Kubernetes)
SpringBoot-Cloud相关
Https专题


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK