See https://github.com/spring-projects/spring-boot/issues/24890#issuecomment-763273976 for more background.

Currently AbstractEnvironment has doGetActiveProfiles() and doGetDefaultProfiles() methods that will call getProperty() if there aren't any set values. In Spring Boot we call setActiveProfiles(..) and setDefaultProfiles(...) directly and we don't want property based resolution (even if the values set are an empty array).

We'd like a way to disable property based resolution.

Comment From: philwebb

I pushed a suggested implementation here