From 7749ea3421f6cc48a59db04bc9babfb8a404d740 Mon Sep 17 00:00:00 2001 From: dsk <2514169858@qq.com> Date: Sun, 25 Jun 2023 16:16:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8E=A5=E5=8F=A3=E8=B6=85?= =?UTF-8?q?=E6=97=B6=E6=97=B6=E9=97=B4=E9=85=8D=E7=BD=AE=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E7=82=B9=E6=92=AD=E8=B6=85=E6=97=B6=E7=9A=84=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8B=E6=8A=A5=E9=94=99org.springframework.web.con?= =?UTF-8?q?text.request.async.AsyncRequestTimeoutException?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/all-application.yml | 4 ++++ src/main/resources/application-dev.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/main/resources/all-application.yml b/src/main/resources/all-application.yml index 0b079f10..ef247f7f 100644 --- a/src/main/resources/all-application.yml +++ b/src/main/resources/all-application.yml @@ -5,6 +5,10 @@ spring: + # 设置接口超时时间 + mvc: + async: + request-timeout: 20000 # [可选]上传文件大小限制 servlet: multipart: diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index f5404e26..504c9c66 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -1,4 +1,8 @@ spring: + # 设置接口超时时间 + mvc: + async: + request-timeout: 20000 thymeleaf: cache: false # [可选]上传文件大小限制