Dynamic Refresh
Support to dynamically refresh the configuration of clients, you can put the configuration in the configuration
center (Consul, Apollo, Nacos,
etc.), and change the configuration (e.g. base-url
, timeout
, headers
), the client will be refreshed automatically
without restarting the application.
Use the following configuration to enable this feature:
application.yml
http-exchange:
refresh:
enabled: true # default is false
tip
This feature needs spring-cloud-context
in the classpath and a RefreshEvent
was published.