Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #416 The problem of multiple keys in ConfigWatch #705

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

takeseem
Copy link

@takeseem takeseem commented Feb 10, 2021

for multiple configurations, generally the first one is the main configuration.
so only the first configuration needs to be watch, the other will wait 1 second.
(if waitTime=0, will wait 5 minutes)

contextIndex is order itself.
It's init in ConsulPropertySourceLocator.locate(Environment environment)

for (String propertySourceContext : this.contexts) {
	ConsulPropertySource propertySource = sources.createPropertySource(propertySourceContext, true,
			this.consul, contextIndex::put);
	if (propertySource != null) {
		composite.addPropertySource(propertySource);
	}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants