Connecting Spring Cloud Config Server to a local Git repository

The Config Server needs to be connected to a Git repository. To keep things simple, let's connect to a local Git repository.

You can install Git for your specific operating system from https://git-scm.com.

The following commands help you set a simple local Git repository.

Switch to a directory of your choice after installing Git. Execute the following commands on a terminal or Command Prompt:

mkdir git-localconfig-repocd git-localconfig-repogit init

Create a file called microservice-a.properties in the git-localconfig-repo folder with the content shown here:

    management.security.enabled=false    application.message=Message From Default Local Git Repository

Execute the following ...

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.