Trying out Spring Cloud Config Server
Now it is time to try out the config server:
- First, we will build from source and run the test script to ensure that everything fits together.
- Next, we will try out the config server API to retrieve the configuration for our microservices.
- Finally, we will see how we can encrypt and decrypt sensitive information – for example, passwords.
Building and running automated tests
So, now we’ll build and run verification tests of the system landscape, as follows:
- First, build the Docker images with the following commands:
cd $BOOK_HOME/Chapter12 ./gradlew build && docker compose build
- Next, start the system landscape in Docker and run the usual tests with the following command:
./test-em-all.bash start
Getting the configuration using the config server API
As described previously, we can reach the API of the config server through the...