Spring Cloud Config Server - Configure the server to get common properties from one repository and application properties form a different repository

Viewed 685

I have the following requirements:

  • There is a git repo (commonRepo) with an application.yml file that contains properties which are common to all applications.
  • There is another git repo (applicationRepo) with the applications' config files: app1.yml, app2.yml, etc.

The point of this is to have all common properties centralized in a repo with specific write permissions.

I need to configure Spring Cloud Config Server to read from both repos, with the following priority:

applicationRepo:appX.yml > applicationRepo:application.yml > commonRepo:application.yml

Is it possible to configure it to do that?

1 Answers
Related