title: Set Max In Memory Size In Spring Webflux
body: <p>I am receiving the following error in a Spring Boot application using WebFlux</p>
  <blockquote>
  <p>org.springframework.core.io.buffer.DataBufferLimitException: Exceeded
  limit on max bytes to buffer : 262144</p>
  </blockquote>
  <p>I tried setting the limit inside <code>application.yml</code> with</p>
  <pre class="lang-yaml prettyprint-override"><code>spring:
    codec:
      max-in-memory-size: 10MB
  </code></pre>
  <p>Or by adding the following to a WebClient configuration class but they are ignored.</p>
  <pre class="lang-java prettyprint-override"><code>.exchangeStrategies(ExchangeStrategies.builder()
          .codecs(clientCodecConfigurer -&gt; clientCodecConfigurer
                  .defaultCodecs()
                  .maxInMemorySize(10 * 1024 * 1024)
          )
          .build()
  )
  </code></pre>
  <p>I am Using Spring Boot 2.3.3.RELEASE.</p>
  <p>Do you have any idea on what the problem might be?</p>