Commit 637d13bfeb3b1e034552d7a5ce6143d30f9693ea

Authored by luotong
1 parent a7455c1f

修改注册实例信息

Showing 1 changed file with 2 additions and 2 deletions
user-service.yml
... ... @@ -51,12 +51,12 @@ eureka:
51 51 instance:
52 52 hostname: user-service
53 53 perferIpAddress: true
54   - instance-id: ${spring.cloud.client.ipAddress}:${server.port}
  54 + instance-id: ${spring.application.name}:${spring.cloud.client.ipAddress}:${server.port}
55 55 leaseRenewalIntervalInSeconds: 5
56 56 leaseExpirationDurationInSeconds: 15
57 57 client:
58 58 registerWithEureka: true
59   - fetchRegistry: false
  59 + fetchRegistry: true
60 60 serviceUrl:
61 61 defaultZone: http://discovery:15200/eureka/
62 62 healthcheck:
... ...