Category Archives: Problem/Solution

Solved: Spring Cloud: You need to configure a uri for the git repository

Trying to create a basic Spring Cloud application, based on the book Mastering Spring Boot 2.0, chaper 4,  I’ve got an error message:

You need to configure a uri for the git repository

I was thinking the error is from the property spring.cloud.config.server.git, but actually the error came from the native profile that needs to be enabled in order to use the config directory as a repository for config files.

in application.properties need to have the following lines: (change the path to your path, if you are using Linux or Mac you need to delete one / after file)

spring.cloud.config.server.git=file:///E:/Projects/app-config-repo
spring.profiles.active=native