Commit 5dbbf94f3b58d0db8dda2052e7e0ee135190e55e
1 parent
160e6c8d
修改instance-id
Showing
1 changed file
with
1 additions
and
1 deletions
user-service.yml
| @@ -51,7 +51,7 @@ eureka: | @@ -51,7 +51,7 @@ 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 | client: | 55 | client: |
| 56 | leaseRenewalIntervalInSeconds: 5 | 56 | leaseRenewalIntervalInSeconds: 5 |
| 57 | leaseExpirationDurationInSeconds: 12 | 57 | leaseExpirationDurationInSeconds: 12 |