0PricingLogin
Spring Boot 4 Microservices & REST APIs · Lesson

Git-Backed Configuration

Version your config in a Git repository.

Why Git as the backend

Storing configuration in Git gives you version history, code review, and rollback. The Config Server simply reads files from a configured repository.

The config repo layout

Each service has one or more YAML/properties files named after its application name, optionally with a profile suffix.

// config-repo/
//   application.yml        (shared by all)
//   orders.yml             (orders, default profile)
//   orders-prod.yml        (orders, prod profile)
//   inventory.yml

All lessons in this course

  1. The Config Server
  2. Git-Backed Configuration
  3. Config Clients
  4. Refreshing Configuration at Runtime
← Back to Spring Boot 4 Microservices & REST APIs