How to use Spring Cloud Config with local GIT repository instead of GitHub?

Has anyone configured Spring Cloud Config to use a local GIT repository instead of GitHub? If you could share your configuration?

+5
source share
2 answers

Spring Server cloud configuration tests do this.

Uri ends like this file:./target/test-classes/config-repo/

You can do something like this in bootstrap.properties

 spring.cloud.config.server.git.uri=file:/path/to/your/git/repo 
+7
source

Thanks for the answer. This is partially correct. I had to add uri to the bootstrap file, not the application file. Now it works like a charm.

+1
source

Source: https://habr.com/ru/post/1206913/


All Articles