Consider following configuration hierarchy which I have for my cloud config server:
application.properties
[directory] dev <-- environment dev
application-dev.properties
[directory] microservice-1 <--- microservice
microservice-dev.properties
[directory] qa <-- environment qa
application-qa.properties
[directory] microservice-1 <--- microservice
microservice-qa.properties
I have the flexibility of having property placeholders and common configuration with the above hierarchy
Example :
application.properties : has common configuration across the microservices for all environments.
application-dev.properties : has common configuration across microservices for dev environment.
microservice-dev : has specific configuration for microservice for dev environment
In case of override of properties with same key the service specific values are resolved.
Also it is possible to have placeholders to have values from other keys.
Question/Enhancement:
Usually the searchPaths configuration in spring.cloud.config is used to do this when the backend is git.
I would like to achieve the same thing using Jdbc backend, But seems like it is currently not possible.
Is there a workaround or is this already in future scope ?
Description:
Consider following configuration hierarchy which I have for my cloud config server:
I have the flexibility of having property placeholders and common configuration with the above hierarchy Example :
In case of override of properties with same key the service specific values are resolved. Also it is possible to have placeholders to have values from other keys.
Question/Enhancement: Usually the searchPaths configuration in spring.cloud.config is used to do this when the backend is git. I would like to achieve the same thing using Jdbc backend, But seems like it is currently not possible. Is there a workaround or is this already in future scope ?