I am receiving the following error in a Spring Boot application using WebFlux
org.springframework.core.io.buffer.DataBufferLimitException: Exceeded limit on max bytes to buffer : 262144
I tried setting the limit inside application.yml
with
spring:
codec:
max-in-memory-size: 10MB
Or by adding the following to a WebClient configuration class but they are ignored.
.exchangeStrategies(ExchangeStrategies.builder()
.codecs(clientCodecConfigurer -> clientCodecConfigurer
.defaultCodecs()
.maxInMemorySize(10 * 1024 * 1024)
)
.build()
)
I am Using Spring Boot 2.3.3.RELEASE.
Do you have any idea on what the problem might be?