Commit 9c029315a9a5bb0539fa2d6d51b7ee591ce26b3b

Authored by 刘岱鹏
1 parent a5deba11

修改配置

Showing 1 changed file with 1 additions and 0 deletions
class-service.yml
... ... @@ -86,6 +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 90 client:
90 91 leaseRenewalIntervalInSeconds: 5
91 92 leaseExpirationDurationInSeconds: 12
... ...