Commit 10962673b7a59020e17fc85bdd6faf4ad11d956f

Authored by 刘岱鹏
1 parent e5117b43

修改配置

Showing 1 changed file with 2 additions and 0 deletions
class-service.yml
@@ -87,6 +87,8 @@ eureka: @@ -87,6 +87,8 @@ eureka:
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.cloud.client.ipAddress}:${server.port}
  90 + healthcheck:
  91 + enabled:true
90 client: 92 client:
91 leaseRenewalIntervalInSeconds: 5 93 leaseRenewalIntervalInSeconds: 5
92 leaseExpirationDurationInSeconds: 12 94 leaseExpirationDurationInSeconds: 12