homedepot / spring-cloud-config-refresh

Spring Cloud Config Refresh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spring Cloud Config Refresh

Spring Cloud Config automatic refresh

Build Status

download

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.

About

Spring Cloud Config Refresh

License:Apache License 2.0


Languages

Language:Java 100.0%