Skip to content
Demo micro service uses Spring cloud config server for centralised configuration
Branch: master
Clone or download
Latest commit 3bb2d1f Jul 31, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
bank-account-service update props to specify profile for cloud config Jul 25, 2018
config-server updated prop values and removed boiler plate scripts Jul 24, 2018
configuration Update Jul 27, 2018 Update Jul 31, 2018

Micro Services - Spring Cloud Config

Clone the repository with

git clone

Running the Config Service

cd config-service
mvn clean package
java -jar target/config-service-0.0.1-SNAPSHOT.jar (starts on port 8888)

Running the Bank Account Service

cd bank-account-service
mvn clean package
java -jar target/bank-account-service-0.0.1-SNAPSHOT.jar (starts on port 8080)

Retrieving Properties from Config Service

You can test the config service by pulling back the bank account properties fora given profile. The request below pulls back properties for the uat profile.


Testing the Bank Account Service

You can test the bank account service configuration by creating a new account. This will use the configuration pulled from the config service.

curl -i -H "Content-Type: application/json" -X POST -d '{"accountId":"B12345","accountName":"Joe Bloggs","accountType":"CURRENT_ACCOUNT","accountBlance":1250.38}' localhost:8080/bank-account
You can’t perform that action at this time.