I have the following setup:
myclientapp -> myspringcloudconfigserver -> myconfiggitrepo
I'm not using bootstrap.properties in myclientapp. Instead, I'm defining the following branch override in application-prod properties:
cloud.config.label = master
And in myspringcloudconfigserver application.properties, I have:
spring.cloud.config.server.git.default-label = dev
Then, under myconfiggitrepo, I have:
- master branch: myclientapp-prod.properties with
foo=masterbar - dev branch: myclientapp-prod.properties with
foo=devbar
When I run the client (prod profile) and config server, and try to bind to foo in client, I'm getting devbar instead of masterbar, even though I explicitly specified cloud.config.label = master in the client.