Update `SpringApplication` so that it no longer directly decides the type of `Environment` that should be created. Closes gh-32825
Update `SpringApplication` so that it no longer directly decides the type of `Environment` that should be created. Closes gh-32825