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>