It's bit odd that ConfigFileApplicationListener is currently the thing that invoked EnvironmentPostProcessors. I feel like the logic should live in the org.springframework.boot.env package.

Comment From: onobc

Hi @philwebb - I too have thought this about CFAL for a while now. I would love to take this one unless you are already planning on moving out on it?

Comment From: onobc

Also, what are your thoughts about inlining the invocation of the EPPs in SpringApplication like what is done for the ACIs currently?

Comment From: wilkinsona

Thanks for the offer, @bono007. We're in the early stages of designing a revamp of configuration property file loading and profile support for Spring Boot 2.4. We won't be able to tackle this issue until that work has been completed.

Comment From: onobc

I look forward to seeing the revamp. Thanks for the info @wilkinsona .

Comment From: wilkinsona

This has been tackled in https://github.com/spring-projects/spring-boot/issues/22497.