dynamic-spring-configuration
Zookeeper as Dynamic PropertySource for Spring app
##Summary This is a simple Spring app demonstrating the use of Zookeeper as the property source/config store.
##Usage
- Run with command mvn spring-boot:run
- Observe console to see scheduler print the name property evey 5 sec.
- You can also invoke GET: /service/{property} to get the value of the property from zookeeper.
- If you shutdown zookeeper, app will fall back to cached value or the properties in the files.
##Libraries
Apache Zookeeper
Apache Curator
Archaius
Spring Cloud
##References
- https://github.com/Netflix/archaius/wiki/ZooKeeper-Dynamic-Configuration
- https://github.com/spring-cloud/spring-cloud-config
- http://www.java-allandsundry.com/2015/03/netflix-archaius-properties-in-spring.html
- http://stackoverflow.com/questions/11925952/custom-spring-property-source-does-not-resolve-placeholders-in-value