添加redis配置

This commit is contained in:
zkr_liushenlu 2021-03-24 16:46:01 +08:00
parent 1ffa14d01a
commit 3ed20009d7
1 changed files with 14 additions and 1 deletions

View File

@ -54,4 +54,17 @@ spring:
merge-sql: true
wall:
config:
multi-statement-allow: true
multi-statement-allow: true
# redis配置
redis:
database: 5
host: db.sinosoftec.com
port: 6379
password: sinosoft@ec~123
timeout: 6000ms # 连接超时时长(毫秒)
lettuce:
pool:
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 5 # 连接池中的最小空闲连接