Commit 8a8eed68271d57f6e30de47730f6a3d2d1732d4e
1 parent
7eb21cfa
新增redis-sentinel配置
Showing
1 changed file
with
12 additions
and
0 deletions
class-service.yml
| ... | ... | @@ -34,6 +34,18 @@ spring: |
| 34 | 34 | username: rd |
| 35 | 35 | password: 0Crofg6WIDslONnmqgQLWv14Ekb6028G |
| 36 | 36 | driver-class-name: com.mysql.jdbc.Driver |
| 37 | + redis: | |
| 38 | + database: 0 | |
| 39 | + host: redis-server | |
| 40 | + port: 6379 | |
| 41 | + pool: | |
| 42 | + max-idle: 100 | |
| 43 | + min-idle: 10 | |
| 44 | + max-active: 1000 | |
| 45 | + max-wait: 100000 | |
| 46 | + sentinel: | |
| 47 | + master: mymaster1 | |
| 48 | + nodes: redis1:16379,redis2:16379 | |
| 37 | 49 | |
| 38 | 50 | mybatis: |
| 39 | 51 | mapperLocations: classpath:/mybatis/*.xml | ... | ... |