0Pricing
Spring Boot 4 Microservices & REST APIs · Lesson

Config Clients

Consume centralized config in services.

Turning a service into a client

A microservice becomes a Config Client by adding the client starter and telling it where the Config Server is. It then fetches its config at startup.

Adding the client dependency

Add spring-cloud-starter-config to the service.

<dependency>
  <groupId>org.springframework.cloud</groupId>
  <artifactId>spring-cloud-starter-config</artifactId>
</dependency>

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