yml
消费端
eureka: client: fetch-registry: true register-with-eureka: true service-url: defaultZone: http://eureka7002.com:7002/eureka/,http://eureka7001.com:7001/eureka/
服务端
eureka: client: fetch-registry: true register-with-eureka: true service-url: defaultZone: http://eureka7002.com:7002/eureka/,http://eureka7001.com:7001/eureka/ instance: instance-id: payment8001 #设置实例名称(eureka后台页面展示的实例名称) prefer-ip-address: true #显示实例对应的ip