Want to deploy your JVM, Node.js and Go apps effortlessly to AWS? Try our service Boxfuse

Community Plugins and Integrations: Spring Boot

Spring Boot comes with out-of-the-box integration for Flyway.

All you need to do is add flyway-core to either your pom.xml:

<dependency>
    <groupId>org.flywaydb</groupId>
    <artifactId>flyway-core</artifactId>
    <version>5.2.0</version>
</dependency>

Or build.gradle:

compile "org.flywaydb:flyway-core:5.2.0"

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 application.properties or application.yml file. 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.

Want to deploy your Spring Boot apps effortlessly to AWS? Follow our 5 minute tutorial using Boxfuse

Oracle