Commit 160e6c8d2c15e6ae5f6a080932268a94ca268903

Authored by luotong
1 parent 501b35d2

修改 eureka instancsId 配置

Showing 1 changed file with 1 additions and 1 deletions
class-service.yml
... ... @@ -86,7 +86,7 @@ eureka:
86 86 instance:
87 87 hostname: class-service
88 88 perferIpAddress: true
89   - instance-id: ${spring.cloud.client.ipAddress}:${server.port}
  89 + instance-id: ${spring.application.name}:${spring.cloud.client.ipAddress}:${server.port}
90 90 client:
91 91 leaseRenewalIntervalInSeconds: 5
92 92 leaseExpirationDurationInSeconds: 12
... ...