From f6d111ca1a893bacbf5162aa1527b74cb4e75208 Mon Sep 17 00:00:00 2001 From: yinq Date: Tue, 28 Apr 2026 16:17:28 +0800 Subject: [PATCH] =?UTF-8?q?1.1.26=20gateway=E6=97=A5=E5=BF=97=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E3=80=81=E9=81=BF=E5=85=8D=E9=95=BF=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E8=A2=AB=20Spring=20=E5=BC=82=E6=AD=A5=E5=B1=82=E6=8F=90?= =?UTF-8?q?=E5=89=8D=E8=B6=85=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-gateway/src/main/resources/logback-plus.xml | 12 ++++++------ script/config/nacos/ruoyi-resource.yml | 5 ++++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/ruoyi-gateway/src/main/resources/logback-plus.xml b/ruoyi-gateway/src/main/resources/logback-plus.xml index 59cba623..e99dfb6b 100644 --- a/ruoyi-gateway/src/main/resources/logback-plus.xml +++ b/ruoyi-gateway/src/main/resources/logback-plus.xml @@ -21,8 +21,8 @@ ${log.path}/console.%d{yyyy-MM-dd}.log - - 1 + + 7 ${log.pattern} @@ -41,8 +41,8 @@ ${log.path}/info.%d{yyyy-MM-dd}.log - - 60 + + 7 ${log.pattern} @@ -63,8 +63,8 @@ ${log.path}/error.%d{yyyy-MM-dd}.log - - 60 + + 7 ${log.pattern} diff --git a/script/config/nacos/ruoyi-resource.yml b/script/config/nacos/ruoyi-resource.yml index 0352230f..e4e9bde2 100644 --- a/script/config/nacos/ruoyi-resource.yml +++ b/script/config/nacos/ruoyi-resource.yml @@ -23,7 +23,10 @@ spring: # url: ${datasource.system-postgres.url} # username: ${datasource.system-postgres.username} # password: ${datasource.system-postgres.password} - + mvc: + async: + # 与 SseEmitterManager 中 SseEmitter(86400000L) 一致,避免长连接被 Spring 异步层提前超时 + request-timeout: 86400000 # 默认/推荐使用sse推送 sse: enabled: true