Commit da72cabcc33ecaa3c865b708edcec4e868bb0d8c
1 parent
8a8eed68
新增redis-sentinel配置
Showing
1 changed file
with
12 additions
and
0 deletions
user-service.yml
| ... | ... | @@ -13,6 +13,18 @@ spring: |
| 13 | 13 | username: test |
| 14 | 14 | password: 123456 |
| 15 | 15 | driver-class-name: com.mysql.jdbc.Driver |
| 16 | + redis: | |
| 17 | + database: 0 | |
| 18 | + host: redis-server | |
| 19 | + port: 6379 | |
| 20 | + pool: | |
| 21 | + max-idle: 100 | |
| 22 | + min-idle: 10 | |
| 23 | + max-active: 1000 | |
| 24 | + max-wait: 100000 | |
| 25 | + sentinel: | |
| 26 | + master: mymaster1 | |
| 27 | + nodes: redis1:16379,redis2:16379 | |
| 16 | 28 | |
| 17 | 29 | mybatis: |
| 18 | 30 | mapperLocations: classpath:/mybatis/*.xml | ... | ... |