The following listing shows a recipe for creating the git repository in the preceding example:
$ cd $HOME
$ mkdir config-repo
$ cd config-repo
$ git init .
$ echo info.foo: bar > application.properties
$ git add -A .
$ git commit -m "Add application.properties"
From the root of the project:
$ cd server
$ mvn spring-boot:run
Open a new terminal and from the root of the project:
$ cd client
$ mvn spring-boot:run
Open a new terminal and:
$ curl -X POST http://localhost:8080/actuator/refresh