Let me preface this by saying that I\'m not using Spring Cloud Config directly, it is transitive via Spring Cloud Hystrix starter.
When only using @EnableHystr
spring.cloud.config.enabled=false
. ORSPRING_CLOUD_CONFIG_ENABLED=false
ORConfig server client can be disabled by adding a parameter to your app, if you pass the args to parameters to SpringApplication.run:
public static void main(String[] args) throws Exception {
SpringApplication.run(YourApplication.class, args);
}
and start the app by:
java -jar yourapplication.jar --spring.cloud.config.enabled=false