Prior to this commit, active profiles were being added to the Spring Boot application environment by setting the spring.profiles.active
property. This could result in profiles getting parsed differently than other uses of @ActiveProfiles
. Setting the profiles directly in the Environment
prevents this parsing.
Fixes #19537
Comment From: wilkinsona
This change has been reverted in 2.1.13 as it introduced a regression. See #19788 for details.