Spring-Ms-Config-Server is an example project for Configuration Server
Spring-Ms-Config-Client is an example project for Configuration Client
- Created Springboot app with Spring cloud config server starter
- Created git repository for Configuration files: DemoConfigRepo
- Added '@EnableConfigServer' on application class to enable configuration server nature on application
- Provided Configuration file repository URL in properties file
- Created Spring Boot app with Spring cloud config client starter
- Created a Rest controller to read and serve config properties
- Added Config Server URI in properties. Renamed properties file to bootstrap.properties.
- Clone repository and import it as maven projects
- Start Congif server as Spring Boot application
- Start Config Client as Spring boot application
- To test config server directly, access following URLS:
- To test config client, access http://localhost:7777/greeting