Commit d9b97ac7aab75371d1e211434128e916714748c6
1 parent
637d13bf
修改instanceId配置
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.application.name}:${spring.cloud.client.ipAddress}:${server.port} | 54 | + instance-id: ${spring.cloud.client.ipAddress}:${server.port} |
| 55 | leaseRenewalIntervalInSeconds: 5 | 55 | leaseRenewalIntervalInSeconds: 5 |
| 56 | leaseExpirationDurationInSeconds: 15 | 56 | leaseExpirationDurationInSeconds: 15 |
| 57 | client: | 57 | client: |