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

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

I have Spring boot app running Java 11:


    org.springframework.boot
    spring-boot-star         


        
4条回答
  •  悲哀的现实
    2021-01-11 15:38

    Please try server.max-http-header-size. I have found it here: Common application properties.

    The default value for Tomcat and Jetty is 8KB and for Undertow is 1MB.

提交回复
热议问题