application.yml 703 B

1234567891011121314
  1. server:
  2. port: 80
  3. eureka:
  4. client:
  5. service-url:
  6. 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注册中心
  7. instance:
  8. instance-id: comsumer.com #信息列表时显示的主机名称
  9. prefer-ip-address: true #访问路径地址更改为IP
  10. lease-expiration-duration-in-seconds: 5 #距离上一次心跳的时间,超过则认为是宕机
  11. lease-renewal-interval-in-seconds: 2 #设置心跳的间隔时间
  12. spring:
  13. application:
  14. name: microcloud-consumer