Instead of using the CloudProfileApplicationContextInitializer, which is fine in a container application but comes too late in the lifecycle of a SpringBoot app, we register an ApplicationListener to activate the
cloud profile.
I suspect that any integration tests that already exist for this feature would also need to be updated, to test that the profile is active in time to read the config files (application-cloud.properties for instance).
Instead of using the
CloudProfileApplicationContextInitializer
, which is fine in a container application but comes too late in the lifecycle of a SpringBoot app, we register anApplicationListener
to activate thecloud
profile.I suspect that any integration tests that already exist for this feature would also need to be updated, to test that the profile is active in time to read the config files (
application-cloud.properties
for instance).