redis 增加 database配置项,设置不同的库

This commit is contained in:
li_oxen 2020-12-19 10:08:09 +08:00 committed by Gitee
parent c86dc20743
commit 1caec85f46
1 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,8 @@ spring:
redis: redis:
# 地址 # 地址
host: localhost host: localhost
# 设置不同的库默认值为0redis默认16个即0到15
database: 0
# 端口默认为6379 # 端口默认为6379
port: 6379 port: 6379
# 密码 # 密码