Spring DataBufferLimitException: Exceeded limit on max bytes to buffer : 262144

Spring DataBufferLimitException: Exceeded limit on max bytes to buffer : 262144

通过配置参数加大缓冲区

默认的缓冲区为256K,可以通过配置spring.codec.max-in-memory-size加大缓冲区:

spring:
  codec:
    max-in-memory-size: 2MB

Spring Boot 2.2.1.RELEASE 可用

 

参考:https://blog.csdn.net/nklinsirui/article/details/106949002

posted @ 2020-07-22 17:44  山兮木  阅读(6041)  评论(0编辑  收藏  举报
/* 看板娘 */