Commit 160e6c8d2c15e6ae5f6a080932268a94ca268903
1 parent
501b35d2
修改 eureka instancsId 配置
Showing
1 changed file
with
1 additions
and
1 deletions
class-service.yml
| @@ -86,7 +86,7 @@ eureka: | @@ -86,7 +86,7 @@ eureka: | ||
| 86 | instance: | 86 | instance: |
| 87 | hostname: class-service | 87 | hostname: class-service |
| 88 | perferIpAddress: true | 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 | client: | 90 | client: |
| 91 | leaseRenewalIntervalInSeconds: 5 | 91 | leaseRenewalIntervalInSeconds: 5 |
| 92 | leaseExpirationDurationInSeconds: 12 | 92 | leaseExpirationDurationInSeconds: 12 |