Flyway Spring Boot Autowired Beans

I am using Flyway 5.0.5 and I am unable to create a java (SpringJdbcMigration) with autowired properties... They end up null.

The closest thing I can find is this question: Spring beans are not injected in flyway java based migration

The answer mentions it being fixed in Flyway 5 but the links are dead.

What am I missing?

1 answer

  • answered 2018-01-11 19:46 Andy Wilkinson

    The functionality hasn't made it into Flyway yet. It's being tracked by this issue. At the time of writing that issue is open and assigned to the 5.1.0 milestone.