Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shared properties with Spring Cloud Config

We are thinking of migrating our Spring system to use Spring Cloud Config.

The system is made up of multiple services and some share properties for common resources such as the DB datasource. For these we have a 'base' config file which contains the commonly used properties in one place. Each of the services read the common file first and then overload their properties file on top. This saves us repeating common properties.

I can't see how we do the same with spring cloud config, I can see options for different repositories but not overloading property files.

like image 799
user1232555 Avatar asked May 30 '26 06:05

user1232555


1 Answers

application.yml or application.properties is common to all applications.

like image 99
spencergibb Avatar answered Jun 01 '26 22:06

spencergibb