redis配置文件参考

Raod 2 years ago
parent 2902543f66
commit 5e138b4a8d

@ -75,11 +75,29 @@ public class GaeaAutoConfiguration {
#### 3.bootstrap.yml加上对应的redis配置 #### 3.bootstrap.yml加上对应的redis配置
注意yml格式 注意yml格式
``` ```yaml
# redis: spring:
# host: 127.0.0.1 redis:
# port: 6379 host: 10.108.x.x
# password: root port: 6379
# database: 1 password: ****
database: 1
timeout: 10000
pool:
max-active: 8
max-idle: 8
max-wait: -1
min-idle: 0
``` ```
哨兵模式
```yaml
spring:
redis:
sentinel:
master: master01
nodes: 10.108.xx.xx:26379,10.108.xx.xx:26379,10.108.xx.xx:26379
database: 1
password: *******
timeout: 10000
```

Loading…
Cancel
Save