You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spring-boot/spring-boot-project
Phillip Webb 3f7bf7d34f Modify SpringApplication Environment rather than setting it
Update `SpringBootContextLoader` so that when possible the
`SpringApplication` remains in control of creating the `Environment`
instance.

Prior to this commit, we would always create the `Environment` in the
`SpringBootContextLoader` and then call `setEnvironment` on the
`SpringApplication`. This meant that the `ApplicationEnvironment`
classes were not used and that `isCustomEnvironment` was set to `true`
so no conversion was applied.

With the updated code, an `ApplicationListener` is used to mutate the
`Environment` instance and add the required test property sources.

Fixes gh-29169
3 years ago
..
spring-boot Update copyright year of changed files 3 years ago
spring-boot-actuator Polish assertion 3 years ago
spring-boot-actuator-autoconfigure Update copyright year of changed files 3 years ago
spring-boot-autoconfigure Use Testcontainers instead on Embedded Mongo 3 years ago
spring-boot-cli Merge branch '2.4.x' into 2.5.x 3 years ago
spring-boot-dependencies Upgrade to SLF4J 1.7.33 3 years ago
spring-boot-devtools Remove use of Thymeleaf from smoke tests 3 years ago
spring-boot-docs Clarify documentation of RestTemplate customization 3 years ago
spring-boot-parent Upgrade to Testcontainers 1.16.2 3 years ago
spring-boot-properties-migrator Merge branch '2.3.x' into 2.4.x 4 years ago
spring-boot-starters Update URL for GraphQL Spring Boot starter 3 years ago
spring-boot-test Modify SpringApplication Environment rather than setting it 3 years ago
spring-boot-test-autoconfigure Merge branch '2.4.x' into 2.5.x 3 years ago
spring-boot-tools Ensure run user actually exists 3 years ago