Commit 540c013aa9aca4ffeba8f5f11ff23aee1fe3ba09
1 parent
345e5790
修改配置
Showing
1 changed file
with
2 additions
and
2 deletions
user-service.yml
| ... | ... | @@ -52,8 +52,6 @@ eureka: |
| 52 | 52 | hostname: user-service |
| 53 | 53 | perferIpAddress: true |
| 54 | 54 | instance-id: ${spring.cloud.client.ipAddress}:${server.port} |
| 55 | - healthcheck: | |
| 56 | - enabled:true | |
| 57 | 55 | client: |
| 58 | 56 | leaseRenewalIntervalInSeconds: 5 |
| 59 | 57 | leaseExpirationDurationInSeconds: 12 |
| ... | ... | @@ -61,6 +59,8 @@ eureka: |
| 61 | 59 | fetchRegistry: false |
| 62 | 60 | serviceUrl: |
| 63 | 61 | defaultZone: http://discovery:15200/eureka/ |
| 62 | + healthcheck: | |
| 63 | + enabled:true | |
| 64 | 64 | |
| 65 | 65 | # 一些公共的常量配置 |
| 66 | 66 | apiConfig: | ... | ... |