update yudao-gateway/src/main/resources/application.yaml.

调整缓冲区大小, 修复上传文件时网关报错的问题, 解决报错 org.springframework.core.io.buffer.DataBufferLimitException: Exceeded limit on max bytes to buffer : 262144

Signed-off-by: 肖钦云 <836462915@qq.com>
This commit is contained in:
肖钦云
2025-03-28 04:12:40 +00:00
committed by Gitee
parent e203c9b2f0
commit e678f337af

View File

@@ -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 # 允许循环依赖,因为项目是三层架构,无法避免这个情况。