Here, we'll explore an example of how to set up a Git-backed Config Server and use it in a simple REST application server.
Let's go to http://start.spring.io, select Maven and Spring Boot 2.0.2.RELEASE
, and set the Artifact
to cloud-config-app
. Also select dependencies for Config Server
and add that module. Then generate the application and you will be able to download a ZIP file with a preconfigured project.
The following dependencies will be shared between all the projects:
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.2.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF...