title: How to set max-http-header-size in spring boot 2.x application
body: <p>I have Spring boot app running Java 11:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>And I am getting the error: <code>java.lang.IllegalArgumentException: Request header is too large</code></p>
  
  <p>How to increase <code>max-http-header-size</code>?</p>