From 1cc38159f212787c181a7876e816d053d00e9416 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 4 May 2025 15:55:08 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E3=80=90Gateway=20=E7=BD=91?= =?UTF-8?q?=E5=85=B3=E3=80=91Exceeded=20limit=20on=20max=20bytes=20to=20bu?= =?UTF-8?q?ffer=20:=20262144?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-gateway/src/main/resources/application.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/yudao-gateway/src/main/resources/application.yaml b/yudao-gateway/src/main/resources/application.yaml index b689bb87c..0701013af 100644 --- a/yudao-gateway/src/main/resources/application.yaml +++ b/yudao-gateway/src/main/resources/application.yaml @@ -5,6 +5,10 @@ spring: profiles: active: local + # 调整缓冲区大小,解决报错 org.springframework.core.io.buffer.DataBufferLimitException: Exceeded limit on max bytes to buffer : 262144 + codec: + max-in-memory-size: 10MB + main: allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。