DEV Community

Discussion on: Getting Started With Flyway In Spring Boot

Collapse
mhdzaid profile image
Muhammad Zaid

Very well explained article. Might I add an addition.

Flyway configuration can also be added in the application.yaml or application.properties file of spring boot.

spring:
  profiles: dev
  flyway:
    url: your_db_url
    user: your_user
    password: your_password

Enter fullscreen mode Exit fullscreen mode

This would be helpful when using different profiles in spring boot e.g application-dev.yaml locally and application-staging.yaml on staging.

Collapse
trustbirungi profile image
Trust Birungi Author

Thanks for the addition Muhammad. This is an excellent addition, especially when working with different Spring profiles.