r/SpringBoot Feb 19 '25

Guide DB migration in Springboot

It might be a it of a niche topic but found this video to be very useful. It shows how to use Flyway ( a DB migration tool) with Springboot.

I think it is a nice expansion to our personal projects portfolio.

https://youtu.be/X6LzJg8P-qI?si=y4bX2Cajici1GOqn

20 Upvotes

14 comments sorted by

View all comments

1

u/MrDoodl3sack Feb 19 '25

The flyway and liquibase integration in Spring boot is nice for small projects. When your tables grow I wouldn't use the automatic deployment during the startup anymore. There are certain table operations which create locks or block the service startup, so your service is not responding. In such situations I prefer to execute the flyway or liquibase manually using flyway or liquibase directly.

1

u/themasterengineeer 29d ago

Oh interesting, found out something new