• Andy Wilkinson's avatar
    Rework DataSource initialization · 2f83a671
    Andy Wilkinson authored
    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
    2f83a671
Name
Last commit
Last update
..
spring-boot-deployment-tests Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-smoke-tests Loading commit data...