集成redis

This commit is contained in:
xiongxiaoyang
2020-05-25 16:54:39 +08:00
parent 68abdeca93
commit ce2a3b4647
10 changed files with 135 additions and 43 deletions

View File

@ -6,6 +6,28 @@ spring:
username: root
password: test123456
driver-class-name: com.mysql.cj.jdbc.Driver
#Redis服务器IP
redis:
host: 127.0.0.1
#Redis服务器连接端口
port: 6379
#Redis服务器连接密码
password: test
jedis:
pool:
#连接池最大连接数使用负值表示没有限制
max-active: 8
#连接池最大阻塞等待时间使用负值表示没有限制
max-wait: 1
#连接池最大阻塞等待时间使用负值表示没有限制
max-idle: 8
#连接池中的最小空闲连接
min-idle: 0
#连接超时时间毫秒
timeout: 30000