Skip to content

Liquibase/Flyway autoconfiguration order #537

Closed
@uladzislau-belykh

Description

@uladzislau-belykh

Hello,

I use your starter in our project and found an issue with the autoconfiguration order. Sometimes SqlSessionFactory and SqlSessionTemplate can be configured and used before liquibase/flyway initialized the database completely. That leads to
problems on startup in an empty environment.

As I checked, Liquibase/Flyway AutoConfiguration provides *DependsOnPostProcessors for standard JDBC beans (JdbcTemplate and EntityManager). That ensures the order in which beans will be initialized.

Now I added this dependency manually, but it will be nice if this will be in autoconfiguration.

Thank you in advance.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions