Extend and override 'ConfigClientProperties'
See original GitHub issueHey,
I want to provide my own ‘ConfigClientProperties’ with special default values integrated in my
own autoconfiguration. I can not provide my own property because there is no
@ConditionalOnMissingBean in the ConfigServiceBootstrapConfiguration
class.
Also I would need something like @AutoConfigureBefore
in the bootstrap phase, or?
Is there a way to provide my own bean of the ConfigClientProperties
? I also want to expose the configuration on another conf. path and not under “spring.cloud.config.*”
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
ConfigClientProperties (Spring Cloud Config Client 2.1.4 ...
Method Summary ; boolean, isSendState() ; ConfigClientProperties · override(org.springframework.core.env.Environment environment) ; void, setDiscovery( ...
Read more >Spring Cloud Config Server
You can change the priority of all overrides in the client to be more like default values, allowing applications to supply their own...
Read more >Spring Cloud Config Client Without Spring Boot - Stack Overflow
public class CloudEnvironment extends StandardServletEnvironment ... the client configuration"); System.out.println(configClientProperties); ...
Read more >ConfigClientProperties.override - Java - Tabnine
org.springframework.core.env.Environment environment) { ConfigClientProperties properties = this.defaultProperties.override(environment);
Read more >Quick Intro to Spring Cloud Configuration - Baeldung
git commit -m 'Initial config-client properties' ... we need the 'Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files' installed ...
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
After some thought, I dont’ think we want to support users trying to subclass and replace our configuration properties.
PropertySourceBootstrapConfiguration
is general and allows anyPropertySourceLocator
to be used. They are not sourced viaspring.factories
but as spring beans.