update 优化 连接池增加 keepaliveTime 探活参数

This commit is contained in:
疯狂的狮子li 2023-02-09 12:38:56 +08:00
parent c203d0af46
commit d2baaaaf7b
2 changed files with 4 additions and 0 deletions

View File

@ -95,6 +95,8 @@ spring:
maxLifetime: 1800000
# 连接测试query配置检测连接是否有效
connectionTestQuery: SELECT 1
# 多久检查一次连接的活性
keepaliveTime: 30000
--- # redis 单机配置(单机与集群只能开启一个另一个需要注释掉)
spring:

View File

@ -98,6 +98,8 @@ spring:
maxLifetime: 1800000
# 连接测试query配置检测连接是否有效
connectionTestQuery: SELECT 1
# 多久检查一次连接的活性
keepaliveTime: 30000
--- # redis 单机配置(单机与集群只能开启一个另一个需要注释掉)
spring: