# 高可用
eureka.client.register-with-eureka=true -- 表示: 获取 eureka server 的服务列表
server 端配置eureka.client.serviceUrl.defaultZone两两互相注册,用逗号分隔
客户端配置eureka.client.serviceUrl.defaultZone注册到所有的 server 上
示例
server(8071)
eureka:
client:
serviceUrl:
defaultZone: http://localhost:8072/eureka/,http://localhost:8073/eureka/
register-with-eureka: true
server(8072)
eureka:
client:
serviceUrl:
defaultZone: http://localhost:8071/eureka/,http://localhost:8073/eureka/
register-with-eureka: true
client
eureka:
client:
serviceUrl:
defaultZone: http://localhost:8071/eureka/,http://localhost:8072/eureka/,http://localhost:8073/eureka/
register-with-eureka: true