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,6 +34,18 @@ spring: | ||
| 34 | username: rd | 34 | username: rd |
| 35 | password: 0Crofg6WIDslONnmqgQLWv14Ekb6028G | 35 | password: 0Crofg6WIDslONnmqgQLWv14Ekb6028G |
| 36 | driver-class-name: com.mysql.jdbc.Driver | 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 | mybatis: | 50 | mybatis: |
| 39 | mapperLocations: classpath:/mybatis/*.xml | 51 | mapperLocations: classpath:/mybatis/*.xml |