【发布时间】:2023-02-06 09:36:06
【问题描述】:
我从应用程序调用另一个微服务,当数据更多时,我得到以下异常
nested exception is org.springframework.web.reactive.function.client.WebClientResponseException: 200 OK from GET https://ops-service.apps.com/api/v1/ops/list?page-size=150&page-offset=0; nested exception is org.springframework.core.io.buffer.DataBufferLimitException: Exceeded limit on max bytes to buffer : 262144] with root cause
org.springframework.core.io.buffer.DataBufferLimitException: Exceeded limit on max bytes to buffer : 262144
at org.springframework.core.io.buffer.LimitedDataBufferList.raiseLimitException(LimitedDataBufferList.java:99) ~[spring-core-5.3.15.jar:5.3.15]
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
我试图通过如下尝试解决上述异常,但没有成功,但仍然出现异常。 在两个微服务的 application.properties 中包含以下行。
spring.codec.max-in-memory-size=70MB
任何人都有上述异常的解决方案?
【问题讨论】: