Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jmnarloch/spring-cloud-config-refresh

Spring Cloud Config Refresh
https://github.com/jmnarloch/spring-cloud-config-refresh

Last synced: 4 days ago
JSON representation

Spring Cloud Config Refresh

Awesome Lists containing this project

README

        

= Spring Cloud Config Refresh
Jakub Narloch
:toc: left
:sectnums:

Spring Cloud Config automatic refresh

image:https://travis-ci.org/jmnarloch/spring-cloud-config-refresh.svg?branch=master["Build Status", link="https://travis-ci.org/jmnarloch/spring-cloud-config-refresh"]

image::https://api.bintray.com/packages/jmnarloch/maven/spring-cloud-config-refresh/images/download.svg[link="https://bintray.com/jmnarloch/maven/spring-cloud-config-refresh/_latestVersion"]

== Features

Adds automatic "pull" feature of configuration from Spring Cloud Config Server with configurable delay.

== Setup

In order to setup refresh you have to add fallowing dependency to your Cloud Config Client.

[source, xml]
----

com.github.jmnarloch
spring-cloud-starter-config-refresh
1.0.0

----

== Configuration

Afterwards set the refresh interval (in seconds) in your `application.yml`

[source, yml]
----

spring:
cloud:
config:
refreshInterval: 600

----

== Pulling configuration

This will configure your Cloud Config client to automatically pull the configuration from the server every 10 minutes.