spring-cloud / spring-cloud/spring-cloud-config

Hierarchical configuration and property placeholders with jdbc backend

Open
#1,277 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
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

I have the flexibility of having property placeholders and common configuration with the above hierarchy
Example :

  1. application.properties : has common configuration across the microservices for all environments.
  2. application-dev.properties : has common configuration across microservices for dev environment.
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.