How to point spring-cloud-config server to a git folder inside a git repo
See original GitHub issueI have a git repo and I created a config folder inside it. Now in my spring-cloud-config server application I am trying to point it to config folder.
The configuration is as below:
spring.cloud.config.server.git.uri: https://github.com/test/tes-service/
spring.cloud.config.server.git.username=test
spring.cloud.config.server.git.password=test
spring.cloud.config.server.git.search-paths=config
But this configuration does not seems to be working. Is this the correct way to do it?
Issue Analytics
- State:
- Created 8 years ago
- Comments:17 (5 by maintainers)
Top Results From Across the Web
How to point spring-cloud-config server to a ... - Stack Overflow
Point to your git repo and set the subfolder in the searchPaths spring.cloud.config.
Read more >2. Spring Cloud Config Server
The server is embeddable in a Spring Boot application, by using the @EnableConfigServer annotation. Consequently, the following application is a config server:
Read more >Spring Cloud Config Server with Git Integration
Point the Git repo from Config Server. Create one file called bootstrap.properties in the src\main\resources directory of spring-config-sever ...
Read more >Connect Spring Cloud Config Server to Local Git Repository
First, we will find the folder path. Right-click on git-localconfig-repo -> Properties -> copy the Location label address and paste it into the...
Read more >How to Setup the Spring Cloud Config Server With Git - DZone
Configure Repository ; 1. spring.application.name=hello-config-server ; 2. server.port=8888 ; 3. spring.cloud.config.server.git.uri=file:///d:/ ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
As per our design, we are maintaining the configurations like below. config/application.yml config/aat/application.yml config/uat/application.yml
searchPaths: config,config/aat
Is it possible to load the configuration for aat environment from config/application.yml and config/aat/application.yml?
It can be solved as following :
Suppose you have in your config repo properties for multimple services organized in folders: properties organized in folders
Then, your config file for config server looks like this :
This way you can organize all the properties in one central config repository and tell spring config server in which folders to look for properties