在发送文件时,我收到一个字节数组。我总是在webflux接收数组时遇到问题。抛出的错误如下:
org.springframework.core.io.buffer.DataBufferLimitException: Exceeded limit on max bytes to buffer : 262144
at org.springframework.core.io.buffer.LimitedDataBufferList.raiseLimitException(LimitedDataBufferList.java:101)
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException你现在如何在webflux中解决这个问题?
发布于 2020-02-21 22:01:43
我想这个问题是关于在Spring Boot中添加一个新的spring.codec.max- in -memory-size配置属性。将其添加到属性中,如:
spring:
codec:
max-in-memory-size: 10MBhttps://stackoverflow.com/questions/59735951
复制相似问题