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,12 +51,12 @@ eureka:
51 instance: 51 instance:
52 hostname: user-service 52 hostname: user-service
53 perferIpAddress: true 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 leaseRenewalIntervalInSeconds: 5 55 leaseRenewalIntervalInSeconds: 5
56 leaseExpirationDurationInSeconds: 15 56 leaseExpirationDurationInSeconds: 15
57 client: 57 client:
58 registerWithEureka: true 58 registerWithEureka: true
59 - fetchRegistry: false 59 + fetchRegistry: true
60 serviceUrl: 60 serviceUrl:
61 defaultZone: http://discovery:15200/eureka/ 61 defaultZone: http://discovery:15200/eureka/
62 healthcheck: 62 healthcheck: