Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jmnarloch/spring-cloud-config-refresh
- Owner: jmnarloch
- License: apache-2.0
- Created: 2015-07-12T20:56:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-13T09:01:41.000Z (over 9 years ago)
- Last Synced: 2023-03-23T02:33:26.050Z (over 1 year ago)
- Language: Java
- Size: 203 KB
- Stars: 14
- Watchers: 5
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
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.