Commit 5cb4e031f700690e403aa8c73217fb450c0e5c45

Authored by luotong
1 parent ed2d6076

修改服务续约和服务失效的配置

Showing 1 changed file with 2 additions and 2 deletions
user-service.yml
@@ -52,9 +52,9 @@ eureka: @@ -52,9 +52,9 @@ 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 - client:  
56 leaseRenewalIntervalInSeconds: 5 55 leaseRenewalIntervalInSeconds: 5
57 - leaseExpirationDurationInSeconds: 12 56 + leaseExpirationDurationInSeconds: 15
  57 + client:
58 registerWithEureka: true 58 registerWithEureka: true
59 fetchRegistry: false 59 fetchRegistry: false
60 serviceUrl: 60 serviceUrl: