spring-boot/spring-boot-tests
Andy Wilkinson 2f83a6714b Rework DataSource initialization
Previously, DataSource initialization was triggered via a
BeanPostProcessor or a schema created event from JPA. This caused
numerous problems with circular dependencies, bean lifecycle, etc and
added significant complexity.

This commit reworks DataSource initialization to remove the use of a
BeanPostProcessor entirely. In its place, DataSource initialization is
now driven by an InitializingBean with dependency relationships
between beans ensuring that initialization has been performed before
the DataSource is used. This aligns with the approach that's worked
well with Flyway and Liquibase.

More changes are planned to further simplify DataSource initialization.
The changes in this commit are a foundation for those changes. Any new
public API in this commit is highly likely to change before the next
GA.

Fixes gh-13042
Fixes gh-23736
2021-02-17 12:10:22 +00:00
..
spring-boot-deployment-tests Add junit-platform-launcher dependency by convention 2021-02-02 13:03:21 +00:00
spring-boot-integration-tests Merge branch '2.4.x' 2021-02-02 15:14:18 +00:00
spring-boot-smoke-tests Rework DataSource initialization 2021-02-17 12:10:22 +00:00