123456789101112131415161718192021222324252627282930313233 |
- spring:
- redis:
- host: 192.168.2.100
- port: 6379
- #password: 123456
- #Redis数据库索引(默认为0)
- database: 0
- #连接池最大连接数(使用负值表示没有限制)
- jedis:
- pool:
- max-active: 50
- #连接池最大阻塞等待时间(使用负值表示没有限制)
- max-wait: -1
- #连接池中的最大空闲连接
- max-idle: 20
- #连接池中的最小空闲连接
- min-idle: 2
- #连接超时时间(毫秒)
- timeout: 5000
- # 指定服务注册中心的地址
- eureka:
- instance:
- prefer-ip-address: true # 是否使用 ip 地址注册
- instance-id: ${spring.cloud.client.ip-address}:${server.port} # ip:port
- client:
- service-url: # 设置服务注册中心地址
- defaultZone: http://localhost:18000/eureka/
- # 日志配置
- logging:
- level:
- root: info
|