Browse Source

!145 redis 增加 database配置项,设置不同的库
Merge pull request !145 from li_oxen/N/A

若依 4 years ago
parent
commit
854a6f805f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      ruoyi-admin/src/main/resources/application.yml

+ 2 - 0
ruoyi-admin/src/main/resources/application.yml

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