Spring Cloud Config Refresh
Table of Contents
1. Features
Adds automatic "pull" feature of configuration from Spring Cloud Config Server with configurable delay.
2. Setup
In order to setup refresh you have to add fallowing dependency to your Cloud Config Client.
<dependency>
<groupId>com.github.jmnarloch</groupId>
<artifactId>spring-cloud-starter-config-refresh</artifactId>
<version>1.0.0</version>
</dependency>
3. Configuration
Afterwards set the refresh interval (in seconds) in your application.yml
spring:
cloud:
config:
refreshInterval: 600
4. Pulling configuration
This will configure your Cloud Config client to automatically pull the configuration from the server every 10 minutes.