You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
new SpringApplicationBuilder.profiles does not seem to be reloading correctly.
Command line --spring.profiles.active=A
new SpringApplicationBuilder.profiles("C")
version is A and ActiveProfiles are "A,C"
I would expect version to be C.
Command line --spring.profiles.active=C
new SpringApplicationBuilder.profiles("A")
version is C and ActiveProfiles are "C,A"
Works as expected and I get a version of C.
When not using --spring.profiles.active on the command line and only using the SpringApplicationBuilder setting the profile does not seem to affect the value of version when spring.profiles.active is set in the yml file.
spring.profiles.active: B
---
spring.profiles: A
version: A
---
spring.profiles: B
version: B
---
spring.profiles: C
version: C
---