From 8e7e3fb5d845a625c575a10c973d31ddf344ad21 Mon Sep 17 00:00:00 2001 From: yang chen Date: Mon, 8 Dec 2025 14:55:29 +0800 Subject: [PATCH] =?UTF-8?q?feat(config):=20=E5=A2=9E=E5=8A=A0=E5=BC=82?= =?UTF-8?q?=E6=AD=A5=E8=AF=B7=E6=B1=82=E8=B6=85=E6=97=B6=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 application.yaml 中添加 mvc.async.request-timeout 配置项 - 设置异步请求超时间为 120 秒(2 分钟) - 默认超时时间从 30 秒调整为 120 秒 --- jeelowcode-admin/src/main/resources/application.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jeelowcode-admin/src/main/resources/application.yaml b/jeelowcode-admin/src/main/resources/application.yaml index d336ca8..3806152 100644 --- a/jeelowcode-admin/src/main/resources/application.yaml +++ b/jeelowcode-admin/src/main/resources/application.yaml @@ -13,6 +13,8 @@ spring: max-file-size: 100MB # 单个文件大小 max-request-size: 500MB # 设置总上传的文件大小 mvc: + async: + request-timeout: 120000 # 设置异步请求超时时间为120秒(2分钟),默认是30秒 pathmatch: matching-strategy: ANT_PATH_MATCHER # 解决 SpringFox 与 SpringBoot 2.6.x 不兼容的问题,参见 SpringFoxHandlerProviderBeanPostProcessor 类