Add some documentation about the property eureka.client.refresh.enable

This commit is contained in:
wenqi.huang
2019-05-03 10:52:54 +08:00
parent 84ccefcd4a
commit 2bbb537b17

View File

@@ -330,7 +330,7 @@ By default, the `EurekaClient` bean is refreshable, so the Eureka client propert
with the default setting, the `EurekaClient` instance will be destroyed and reconstructed again when refreshed, so your program will unregister from eurekaServer and after some seconds, it will register to eurekaServer again,
consider that when we refresh all of the `Service A` instances at the same time, there will be some seconds no one instance alive on eurekaServer, if at the same time, `Service B` tries to fetch instances of `Service A`,
it will fetch an empty list. If you don't want to see this, you can set `eureka.client.refresh.enable=false` in the application properties to make the `EurekaClient` instance immutable,
but notice that if you set this property to false, none of the Eureka client properties will be refreshable.
but notice that if you set this property to false, none of the Eureka client properties will be refreshable. (This property is imported since `Finchley.SR4`)
*application.properties. *
```