spring.cloud.config.uri no effect
See original GitHub issueSpring cloud config client property “spring.cloud.config.uri” has no effect, I see the source in class org.springframework.cloud.config.client.ConfigClientProperties
public ConfigClientProperties override(
org.springframework.core.env.Environment environment) {
ConfigClientProperties override = new ConfigClientProperties();
BeanUtils.copyProperties(this, override);
override.setName(
environment.resolvePlaceholders("${" + ConfigClientProperties.PREFIX
+ ".name:${spring.application.name:application}}"));
if (environment.containsProperty(ConfigClientProperties.PREFIX + ".profile")) {
override.setProfile(
environment.getProperty(ConfigClientProperties.PREFIX + ".profile"));
}
if (environment.containsProperty(ConfigClientProperties.PREFIX + ".label")) {
override.setLabel(
environment.getProperty(ConfigClientProperties.PREFIX + ".label"));
}
return override;
}
I see “profile” and “label” will override the config, but uri does not, is it right?
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
spring cloud config client not loading configuration from config ...
To re-enable by properties set spring.cloud.bootstrap.enabled=true or spring.config.use-legacy-processing=true. These need to be set as an ...
Read more >Spring Cloud Config
Spring Cloud Config provides server and client-side support for externalized configuration in a distributed system. With the Config Server you have a ...
Read more >How does Anatomy of Spring cloud config work? - NEX Softsys
There is a setting called “spring-cloud .config.failFast=true”. The default value is false. The default is that we do not want to fail. The...
Read more >Spring Cloud Config for Shared Microservice Configuration
This tutorial shows how to use Spring Cloud config to manage configuration properties for multiple Spring Boot applications from a single ...
Read more >Spring Cloud - Bootstrapping - Baeldung
This is the default URL and port for a config server and indicates our discovery service did not have an address when the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You need to set
spring.cloud.config.uri
inbootstrap.yml
notapplication.yml
.From the documentation:
It solved my issue