Flyway Migration with java

前端 未结 3 1052
挽巷
挽巷 2021-01-15 14:32

I learnt flywaydb migration with java works with JDBC connection and also spring support through SpringTemplate, but flyway doesn\'t work with DAOs.

for tables/entit

3条回答
  •  天涯浪人
    2021-01-15 14:38

    Your DAOs rely on the very structure Flyway was designed to change. We therefore have a chicken and egg problem here. The way to solve this is to run Flyway before the rest of your application (including the DAOs) gets initialized.

提交回复
热议问题