mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Previously, SpringBootContextLoader would configure its SpringApplication with an ApplicationContextFactory that ignores the WebApplicationType with which its called and instead returns a hard-coded type of context based on the type of the MergedContextConfiguration. This hard-coding would result in the wrong type of context being used if a subsequent change was made to the application's WebApplicationType, for example due to binding of the spring.main.web-application-type configuration property. This commit updates SpringBootContextLoader to configure SpringApplication with an ApplicationContextFactory that takes the WebApplicationType with which it is called into consideration. Fixes gh-29170 |
||
---|---|---|
.. | ||
spring-boot | ||
spring-boot-actuator | ||
spring-boot-actuator-autoconfigure | ||
spring-boot-autoconfigure | ||
spring-boot-cli | ||
spring-boot-dependencies | ||
spring-boot-devtools | ||
spring-boot-docs | ||
spring-boot-parent | ||
spring-boot-properties-migrator | ||
spring-boot-starters | ||
spring-boot-test | ||
spring-boot-test-autoconfigure | ||
spring-boot-tools |