DEV Community

Discussion on: Getting Started With Flyway In Spring Boot

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 file of spring boot.

  profiles: dev
    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.

trustbirungi profile image
Trust Birungi Author

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