中间件(17) : 神禹API网关[6]-修改响应结果数据量限制

参考 : 

        spring boot 中出现DataBufferLimitException: Exceeded limit on max bytes to buffer :262144_我真的不吃辣条的博客-CSDN博客 https://blog.csdn.net/nklinsirui/article/details/106949002

 https://blog.csdn.net/yu542771572/article/details/127414093

shenyu-bootstarp修改配置

# 神禹接口响应数据大小配置, MB
shenyu.httpclient.maxInMemorySize=2000
# spring接口响应数据大小配置, 单位Byte, 2097152000=2000M
spring.codec.max-in-memory-size=2097152000

注 : 需要同时配置

错误日志

2022-11-09 13:22:33 [reactor-http-kqueue-8] ERROR org.apache.shenyu.plugin.httpclient.AbstractHttpClientPlugin - Exceeded limit on max bytes to buffer : 1048576

org.springframework.core.io.buffer.DataBufferLimitException: Exceeded limit on max bytes to buffer : 1048576

at org.springframework.core.io.buffer.LimitedDataBufferList.raiseLimitException(LimitedDataBufferList.java:99)

Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:

Error has been observed at the following site(s):

你可能感兴趣的:(中间件,中间件,java,spring,shenyu数据量限制)