Hi,
as we are using Spring with Flyway we want to use other beans inside the SpringJdbcMigrations. Therefore we created a new resolver which retrieves the SpringJdbcMigrations from the Spring application context. This way we are able to define the migrations inside the application context and reference other beans we would need for this migration inside the SpringJdbcMigraiton with the dependency injection mechanisms of Spring (@Autowired). Please have a look at the linked pull request and the tests how this is done.
If this pull request is accepted and integrated, then I would also add some documentation to the website project of Flyway on how to use this new resolver.
Thanks and regards,
Guy
Hi,
as we are using Spring with Flyway we want to use other beans inside the
SpringJdbcMigrations. Therefore we created a new resolver which retrieves theSpringJdbcMigrations from the Spring application context. This way we are able to define the migrations inside the application context and reference other beans we would need for this migration inside theSpringJdbcMigraitonwith the dependency injection mechanisms of Spring (@Autowired). Please have a look at the linked pull request and the tests how this is done.If this pull request is accepted and integrated, then I would also add some documentation to the website project of Flyway on how to use this new resolver.
Thanks and regards,
Guy