After updating from 4.0.x to 4.1.2 application asks wrong Spring Profile
bvn13 opened this issue · 1 comments
bvn13 commented
My application uses Spring Config Server.
In application.yaml there is no spring.profiles.active
property.
Active profiles is passed through env variables in gitlab CI.
After upgrading spring-cloud-config-client
library upto 4.1.2
version I faced an issue.
Logs in application:
Located environment: name=NAME, profiles=[prod], label=null, version=a56ea361ee44, state=null
But it asks Config Server with DEFAULT
profile.
How can it happen?
bvn13 commented
Oh... My colleague have just found this update 8e090b9#diff-0b163e7aa4ac496d637a29fb55fb224c53c473a8c9902472819adff2ef27e0bb
And now I understand that it is a normal behavior.
So... it is not a bug, it is a feature now. :)