From 1b96fda87d1bba4ac749e10eb3dfcb38bf5c20a9 Mon Sep 17 00:00:00 2001 From: wangwenhua <12345678> Date: Fri, 19 Sep 2025 12:23:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=98=E6=96=97=E4=BB=BB=E5=8A=A1=E6=B6=88?= =?UTF-8?q?=E8=80=97=E8=B5=84=E6=BA=90=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 10 +++++----- src/main/resources/application-prod.properties | 9 ++++++++- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 1cb39b1..bd82bc5 100644 --- a/pom.xml +++ b/pom.xml @@ -56,11 +56,11 @@ lettuce-core 6.2.4.RELEASE --> - + 2.12.0 + @@ -190,11 +190,11 @@ org.springframework.boot spring-boot-starter-data-redis - + com.baomidou dynamic-datasource-spring-boot-starter diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties index cae530e..3b749cf 100644 --- a/src/main/resources/application-prod.properties +++ b/src/main/resources/application-prod.properties @@ -10,7 +10,14 @@ spring.redis.host=192.168.0.53 spring.redis.port=6379 #spring.redis.password=123 spring.redis.timeout=5000 - +spring.redis.lettuce.shutdown-timeout=5000 +#spring.redis.lettuce.timeout=5000 +spring.redis.lettuce.pool.max-active=8 +spring.redis.lettuce.pool.max-idle=8 +spring.redis.lettuce.pool.min-idle=0 +spring.redis.lettuce.pool.max-wait=2000ms +spring.redis.lettuce.pool.timeout=5000ms # ÃüÁîÖ´Ðг¬Ê± +spring.redis.lettuce.pool.connect-timeout=10000ms # Á¬½Ó½¨Á¢³¬Ê± server.port=8099