Commit 8ee88527889fcaabdaf14ad831858609c69def73
1 parent
c5e01187
修改instance-id配置
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.application.name}:${spring.cloud.client.ipAddress}:${server.port} | 89 | + instance-id: ${spring.cloud.client.ipAddress}:${server.port} |
| 90 | client: | 90 | client: |
| 91 | leaseRenewalIntervalInSeconds: 5 | 91 | leaseRenewalIntervalInSeconds: 5 |
| 92 | leaseExpirationDurationInSeconds: 12 | 92 | leaseExpirationDurationInSeconds: 12 |