ConfigDataContextRefresher
now runs all EnvironmentPostProcessors
after this change
https://github.com/spring-cloud/spring-cloud-commons/commit/74a0b6828703ca1843c8b8f76f663a25ee172634
The problem is now on the Config Server if you refresh the application context ConfigServerConfigDataMissingEnvironmentPostProcessor
is now run.
However on refresh the the property source containing spring.cloud.config.enabled=false
is not included in the environment so ConfigServerConfigDataMissingEnvironmentPostProcessor
runs and fails.
As a workaround you can set spring.cloud.refresh.additionalPropertySourcesToRetain[0]=configServerClient
and the property source will be retained on refresh.