Skip to content

rodrigosaito/spring-etcd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c5f44c4 · Jun 22, 2014

History

3 Commits
Jun 22, 2014
Jun 22, 2014
Jun 22, 2014
Jun 22, 2014
Jun 22, 2014
Jun 22, 2014
Jun 22, 2014
Jun 22, 2014

Repository files navigation

Spring Etcd example

This is an example Spring application that extends PropertyPlaceholderConfigurer to resolve properties from an etcd server.

Running application

Run project:

./gradle run

The application will listen on port 8080.

You can execute the following curl commands to read the properties:

curl http://localhost:8080/config1
curl http://localhost:8080/config2

If you have a running etcd server you can set the following properties:

etcdctl set testApp/config1 "Config1"
etcdctl set testApp/config2 "123" # this should be an integer

After restarting spring application the new values should be returned, when executing curl commands above.

Project Structure

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published