访问一个报表接口时报错了,浏览器显示:
于是去看shenyu-bootstrap控制台,显示:
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:
我回过头来看这个接口返回的数据,发现尽然有好几千条,因为某些原因没法分页返回,只能返回这么多。后来各种找资料,调配置,最终发现改这个配置就行,系统默认是1mb,此处改大点就行:
shenyu:
httpclient:
maxInMemorySize: 1