Centralized Git-backed configuration repository for the microservices-architecture project. Used by the Spring Cloud Config Server (port 9999) to serve externalized configuration to all microservices.
| File | Description |
|---|---|
application.properties |
Global shared config applied to all services |
billing-service.properties |
Billing service specific config |
customer-service.properties |
Customer service default config |
customer-service-dev.properties |
Customer service - dev profile |
customer-service-prod.properties |
Customer service - prod profile |
customer-service-test.properties |
Customer service - test profile |
inventory-service.properties |
Inventory service config |
The Config Server fetches configuration from this repository and serves it to each microservice at startup based on the service name and active profile:
http://localhost:9999/{service-name}/{profile}
Each microservice connects to the Config Server with:
spring.cloud.config.enabled=true
spring.config.import=optional:configserver:http://localhost:9999microservices-architecture — the main project that consumes this config.