增加lettuce连接池
This commit is contained in:
@@ -26,6 +26,11 @@
|
|||||||
<artifactId>commons-io</artifactId>
|
<artifactId>commons-io</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.commons</groupId>
|
||||||
|
<artifactId>commons-pool2</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-configuration-processor</artifactId>
|
<artifactId>spring-boot-configuration-processor</artifactId>
|
||||||
|
|||||||
@@ -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.global-config.db-config.logic-not-delete-value=0
|
||||||
# 原生配置
|
# 原生配置
|
||||||
mybatis-plus.configuration.map-underscore-to-camel-case=true
|
mybatis-plus.configuration.map-underscore-to-camel-case=true
|
||||||
mybatis-plus.configuration.cache-enabled=false
|
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
|
||||||
Reference in New Issue
Block a user