Springboot的Web应用中HTTP请求头RequestHeader过大
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.
低声问向谁行宿,城上已三更。
在开发过程中,有时会遇到需要传很大的请求头的情况,即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专题
- 本文作者: 南瓜慢说
- 本文链接: https://www.pkslow.com/archives/springboot-http-request-header-too-large
- 版权声明: 本博客所有文章除特别声明外,不可转载!
Recommend
-
90
临时表空间过大解决方法解决临时表空间过大有两种方法,方法一增加临时表空间的大小,方法二重建临时表空间,解决临时表空间过大的问题。方案一:增加临时表空间的大小--1.临时表空间的使用情况SELECT D.tablespace_name,  ...
-
45
本文要聊聊浏览器可爱的头头头……们。 Chap1 发现headers 当我们随便打开一个网址(比如大家经常拿来测试网络的百度)时,打开Network,会看到如下请求头,响应头: 究竟这些headers都有什么用呢? 咱们挨个探个究竟。 Chap2 head
-
52
前言 后面有代码以及demo地址 在日常开发中,除了现成插件的使用外,还有很多问题是只能自己动手的。先抛出问题,当一个下拉列表的数据达到几千条甚至上万,这个时候浏览器已经会出现严重卡顿了。看看下面的例子 如图所示,数据量达到2W条简单测试数据(页面没有
-
42
-
41
-
29
MySQL分页offset过大性能问题与优化 - DaemonCoder MySQL分页offset过大性能问题与优化 DaemonCoder | 2018-11-17 18:48:10 最近被DBA报了一个慢查询...
-
15
新浪科技讯1月18日晚间消息,开源技术社区比较活跃的技术专家陈智宏的妻子通过陈智宏的朋友圈发布信息,称陈智宏近期因压力太大,心生郁结,与2020年1月16日完过世,享年42岁。
-
16
Git仓库过大导致clone失败的解决方法 2019-09-09...
-
14
# 本篇要解决的问题 Processing Ti...
-
3
SpringMVC:接收数据 - @PathVariable、@RequestParam、@RequestBody、@RequestHeader、@CookieValueSpringMVC:接收数据 - @PathVariable、@RequestParam、@RequestBody、@RequestHeader、@CookieValue 2021/03/24 Java SpringMVC...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK