question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extend and override 'ConfigClientProperties'

See original GitHub issue

Hey, 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:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
spencergibbcommented, Aug 31, 2017

After some thought, I dont’ think we want to support users trying to subclass and replace our configuration properties.

0reactions
spencergibbcommented, Sep 6, 2017

PropertySourceBootstrapConfiguration is general and allows any PropertySourceLocator to be used. They are not sourced via spring.factories but as spring beans.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found