diff --git a/pom.xml b/pom.xml index 5de3ef9..12b9faa 100644 --- a/pom.xml +++ b/pom.xml @@ -51,7 +51,18 @@ mysql-connector-java 5.1.47 - + + io.lettuce + lettuce-core + 6.2.4.RELEASE + + + org.apache.commons + commons-pool2 + 2.12.0 + + + @@ -179,6 +190,11 @@ org.springframework.boot spring-boot-starter-data-redis + + io.lettuce + lettuce-core + 6.2.4.RELEASE + com.baomidou dynamic-datasource-spring-boot-starter diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties index aa755f9..3b749cf 100644 --- a/src/main/resources/application-prod.properties +++ b/src/main/resources/application-prod.properties @@ -8,14 +8,14 @@ spring.datasource.dynamic.datasource.dm.password=Simulation001 spring.redis.database=0 spring.redis.host=192.168.0.53 spring.redis.port=6379 -spring.redis.jedis.pool.max-idle=10 #spring.redis.password=123 spring.redis.timeout=5000 spring.redis.lettuce.shutdown-timeout=5000 -spring.redis.lettuce.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 # Á¬½Ó½¨Á¢³¬Ê±