How to set max-http-header-size in spring boot 2.x application

后端 未结 4 1827
一整个雨季
一整个雨季 2021-01-11 14:54

I have Spring boot app running Java 11:


    org.springframework.boot
    spring-boot-star         


        
4条回答
  •  天涯浪人
    2021-01-11 15:18

    You should set on the "application.properties" file:

    server.max-http-header-size=48000
    

    48000 is an example of an excessive header, put whatever you want.

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题