1234567891011121314 |
- server:
- port: 80
- eureka:
- client:
- service-url:
- defaultZone: http://QingSe:hello@eureka-7001.com:7001/eureka,http://QingSe:hello@eureka-7002.com:7002/eureka,http://QingSe:hello@eureka-7003.com:7003/eureka #绑定到此地址中的eureka注册中心
- instance:
- instance-id: comsumer.com #信息列表时显示的主机名称
- prefer-ip-address: true #访问路径地址更改为IP
- lease-expiration-duration-in-seconds: 5 #距离上一次心跳的时间,超过则认为是宕机
- lease-renewal-interval-in-seconds: 2 #设置心跳的间隔时间
- spring:
- application:
- name: microcloud-consumer
|