From e678f337af872f4e9e5f8da70dddd9851affbfae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=82=96=E9=92=A6=E4=BA=91?= <836462915@qq.com> Date: Fri, 28 Mar 2025 04:12:40 +0000 Subject: [PATCH] =?UTF-8?q?update=20yudao-gateway/src/main/resources/appli?= =?UTF-8?q?cation.yaml.=20=E8=B0=83=E6=95=B4=E7=BC=93=E5=86=B2=E5=8C=BA?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F,=20=E4=BF=AE=E5=A4=8D=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=97=B6=E7=BD=91=E5=85=B3=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98,=20=E8=A7=A3=E5=86=B3=E6=8A=A5?= =?UTF-8?q?=E9=94=99=20org.springframework.core.io.buffer.DataBufferLimitE?= =?UTF-8?q?xception:=20Exceeded=20limit=20on=20max=20bytes=20to=20buffer?= =?UTF-8?q?=20:=20262144?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 肖钦云 <836462915@qq.com> --- 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 dd298820b..ca851b192 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 # 允许循环依赖,因为项目是三层架构,无法避免这个情况。