Spring Boot comes with out-of-the-box integration for Flyway.
All you need to do is add
flyway-core to either your
<dependency> <groupId>org.flywaydb</groupId> <artifactId>flyway-core</artifactId> <version>5.0.7</version> </dependency>
Spring Boot will then automatically autowire Flyway with its DataSource and invoke it on startup.
You can then configure a good number of Flyway properties directly from your