Document sharing configuration across a subset of applications (GH-618)#3250
Open
won-seoop wants to merge 1 commit into
Open
Document sharing configuration across a subset of applications (GH-618)#3250won-seoop wants to merge 1 commit into
won-seoop wants to merge 1 commit into
Conversation
…g-cloudGH-618) Add a new 'Sharing Configuration Across Applications' section to the client docs explaining how to use a comma-separated list for spring.cloud.config.name to opt individual services into shared configuration files (cassandra.properties, redis.properties, etc.) without polluting application.properties which is loaded by all apps. Document the load order and property override precedence (later names take precedence over earlier names). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes GH-618
The Config Server documentation only covers the base
application.propertiescase, which is shared with all applications. Users who want to share configuration among a subset of applications (e.g., only services that use Cassandra, Redis, etc.) had no documented approach.The Spring Cloud maintainer already answered the question in the issue thread ("Might be nice to add to the docs") but the answer was never added to the reference documentation.
Changes
Added a new
[[sharing-configuration-across-applications]]section toclient.adoc(placed between "Locating Remote Configuration Resources" and "Requesting Multiple Labels") that explains:spring.cloud.config.nameto a comma-separated list (e.g.,${spring.application.name},cassandra) to load additional shared config files[IMPORTANT]callout noting that name order matters — later names override earlier onesTest plan
🤖 Generated with Claude Code