From ad59ae32b812526ba5f4d4959556367588129e7f Mon Sep 17 00:00:00 2001 From: zlt Date: Thu, 22 Aug 2019 15:37:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0lettuce=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E6=B1=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zlt-commons/zlt-redis-spring-boot-starter/pom.xml | 5 +++++ .../src/main/resources/application.properties | 13 ++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/zlt-commons/zlt-redis-spring-boot-starter/pom.xml b/zlt-commons/zlt-redis-spring-boot-starter/pom.xml index 31f6eff..91a9da8 100644 --- a/zlt-commons/zlt-redis-spring-boot-starter/pom.xml +++ b/zlt-commons/zlt-redis-spring-boot-starter/pom.xml @@ -26,6 +26,11 @@ commons-io + + org.apache.commons + commons-pool2 + + org.springframework.boot spring-boot-configuration-processor diff --git a/zlt-config/src/main/resources/application.properties b/zlt-config/src/main/resources/application.properties index 073e575..2a33691 100644 --- a/zlt-config/src/main/resources/application.properties +++ b/zlt-config/src/main/resources/application.properties @@ -91,4 +91,15 @@ mybatis-plus.global-config.db-config.logic-delete-value=1 mybatis-plus.global-config.db-config.logic-not-delete-value=0 # 原生配置 mybatis-plus.configuration.map-underscore-to-camel-case=true -mybatis-plus.configuration.cache-enabled=false \ No newline at end of file +mybatis-plus.configuration.cache-enabled=false + + +##### redis配置 +# 连接池最大连接数(使用负值表示没有限制) +spring.redis.lettuce.pool.max-active=8 +# 连接池最大阻塞等待时间(使用负值表示没有限制) +spring.redis.lettuce.pool.max-wait=-1 +# 连接池中的最大空闲连接 +spring.redis.lettuce.pool.max-idle=8 +# 连接池中的最小空闲连接 +spring.redis.lettuce.pool.min-idle=0 \ No newline at end of file -- GitLab