To externalise a distributed systems configuration Spring Cloud Config provides server and client-side support needed for externalising and centralising your configuration.
To get started quickly you could use Spring Initializr to bootstrap your server. Add the Config Server dependency 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-config-server</artifactId> </dependency>
By default you can use a Git repository to store you configuration.
Defined in :
The default port to run a config server on is 8888.
To enable the config server the application starting class needs to be annotated with
if you want to reproduce, please indicate the source:
Getting started with spring-cloud – Getting started with Cloud Config: Server setup - CodeDay