In 2.3.4 and earlier, when multiple profiles are given with the @ActiveProfiles
annotation, the sequence is honored. That means the property values from the last in the sequence active profile specific properties "win" over previous ones. However, in 2.3.5.RELEASE, the profiles given with @ActiveProfiles
get reordered internally, possibly alphabetically. Therefore, values from some earlier profile-specific properties file could "win". I attached a little demo application.
Comment From: bclozel
Thanks for getting in touch, we've already transferred a similar issue to Spring Framework (and it's already fixed for the next release).
I'm closing this issue as a duplicate of spring-projects/spring-framework#26008