Cannot disable Spring Cloud Config via spring.cloud.config.enabled:false

Solution 1:

The config server is needed during bootstrap, and that's where the parent property sources come from. It looks like all you need to do is move your spring.cloud.config.enabled property to bootstrap.yml (or .properties).

Solution 2:

  • You can put a bootstrap properties or yml to your resource direcotry or your applications directory and add spring.cloud.config.enabled=false. OR
  • You can disable spring cloud config server client by adding an environment variable: SPRING_CLOUD_CONFIG_ENABLED=false OR
  • Config 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