I am not talking about profiles feature in application.properties
. I have local.properties
file which is loaded to ZooKeeperPropertySource
and I want properties which are there, to be treated like the ones set in application.properties
and still be able to use application.properties
.
I have found one solution: spring.config.location
which enables to set multiple sources so I would set default application.properties
as first source and local.properties
as second source. But I don't want to it by passing environent variable, I want to do it in code/config. Are there any additional ways of achieving that? Ideally, I would like to use properties from ZooKeeperPropertySource
.