Get the most out of Flyway v7 - Sign up for our webinar on the Redgate Hub ▶ Watch now
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>7.0.4</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
Spring Boot also lets you configure Flyway using environment variables.
Just be aware that the names of these environment variables differ from Flyway’s native environment variables.
Note that if you are using Spring Boot’s dependency management feature, you do not need to specify a version number for Flyway. Read more on the Spring Boot documentation.
© 2010-2020 Redgate. Made with in Cambridge.
Flyway is a registered trademark of Red Gate Software Ltd.
All other trademarks, trade names, logos or service marks mentioned on this site belong to their respective owners.
This site collects anonymous usage information through Google Analytics.