小编典典

如何在Spring Boot 2.x应用程序中设置max-http-header-size

spring-boot

我有运行Java 11的Spring启动应用程序:

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>

而且我得到了错误: java.lang.IllegalArgumentException: Request header is too large

如何增加max-http-header-size


阅读 4995

收藏
2020-05-30

共1个答案

小编典典

您应该在“ application.properties”文件上进行设置:

server.max-http-header-size=48000

48000是过多标头的示例,放置任何所需的内容。

2020-05-30