spring-cloud / spring-cloud/spring-cloud-config
Hierarchical configuration and property placeholders with jdbc backend
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 2k
- Forks
- 1.3k
- Avg merge
- 2d 59m
- Merged PRs (30d)
- 16
Description
Description:
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
- [directory] dev <-- environment dev
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 ?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue describes hierarchical configuration, property placeholders, and searchPaths behavior for a JDBC backend, but names no source files, tests, or entry points. Start by locating the JDBC backend configuration-loading code and existing searchPaths behavior; done would require a defined approach and tests covering hierarchy, overrides, and placeholder resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring, spring-boot
- Domain
- backend, database
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100