Commit 540c013aa9aca4ffeba8f5f11ff23aee1fe3ba09

Authored by 刘岱鹏
1 parent 345e5790

修改配置

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