I am trying to disable spring-cloud-config-client for my application. spring-cloud-config-client is present as dependency hence on classpath. It auto-triggers everytime as app starts as expected. My usecase is to control this auto-trigger with a property.
My attempt:
This property
spring.cloud.config.enabled=false
I have supplied in bootstrap.properties but still not working.I have gone through Cannot disable Spring Cloud Config via spring.cloud.config.enabled:false but did not work
Other fallback option is to use
spring.cloud.config.overrideSystemProperties=false
andspring.cloud.config.overrideNone=true
inorder to use system/local properties.
Questions:
Is it possible to achieve what I am trying ?
Where should I look to find why its not working ?
Thanks!