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