Getting started with spring-cloud – Getting started with Cloud Config: Client setup

To get started quickly you could use Spring Initializr to bootstrap your client. Add the Config Client to automatically generate a project with the needed dependencies.

Or you could add the dependency manually to an existing Spring Cloud application.

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

Once the dependency is on the classpath Spring Cloud will try to connect to a Config Server on localhost to retrieve the configuration.

if you want to reproduce, please indicate the source:
Getting started with spring-cloud – Getting started with Cloud Config: Client setup - CodeDay