For R2DBC initialization ordering we need to ensure that any beans that depend upon database initialization are configured to depend upon any R2dbcScriptDatabaseInitializer
beans. There's also the possibility that a JDBC DataSource
and Flyway or Liquibase are being used to initialise the database. In these cases we need to ensure that dependencies to any JDBC-based initialization beans are also configured
Comment From: wilkinsona
This issue is noteworthy for users of earlier 2.5 milestones as the database initialization dependency detectors have been generalised to work with JDBC and R2DBC and, as a result, have moved from org.springframework.boot.jdbc.init.dependency
to org.springframework.boot.sql.init.dependency
.