|
|
|
@ -210,7 +210,7 @@ public class FlywayAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Additional configuration to ensure that {@link EntityManagerFactory} beans
|
|
|
|
|
* depend-on the {@code flywayInitializer} bean.
|
|
|
|
|
* depend on the {@code flywayInitializer} bean.
|
|
|
|
|
*/
|
|
|
|
|
@Configuration
|
|
|
|
|
@ConditionalOnClass(LocalContainerEntityManagerFactoryBean.class)
|
|
|
|
@ -225,7 +225,7 @@ public class FlywayAutoConfiguration {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Additional configuration to ensure that {@link JdbcOperations} beans depend-on
|
|
|
|
|
* Additional configuration to ensure that {@link JdbcOperations} beans depend on
|
|
|
|
|
* the {@code flywayInitializer} bean.
|
|
|
|
|
*/
|
|
|
|
|
@Configuration
|
|
|
|
@ -243,8 +243,8 @@ public class FlywayAutoConfiguration {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Additional configuration to ensure that {@link EntityManagerFactory} beans
|
|
|
|
|
* depend-on the {@code flyway} bean.
|
|
|
|
|
* Additional configuration to ensure that {@link EntityManagerFactory} beans depend
|
|
|
|
|
* on the {@code flyway} bean.
|
|
|
|
|
*/
|
|
|
|
|
@Configuration
|
|
|
|
|
@ConditionalOnClass(LocalContainerEntityManagerFactoryBean.class)
|
|
|
|
@ -259,16 +259,16 @@ public class FlywayAutoConfiguration {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Additional configuration to ensure that {@link JdbcOperations} beans depend-on the
|
|
|
|
|
* Additional configuration to ensure that {@link JdbcOperations} beans depend on the
|
|
|
|
|
* {@code flyway} bean.
|
|
|
|
|
*/
|
|
|
|
|
@Configuration
|
|
|
|
|
@ConditionalOnClass(JdbcOperations.class)
|
|
|
|
|
@ConditionalOnBean(JdbcOperations.class)
|
|
|
|
|
protected static class FlywayJdbcDependencyConfiguration
|
|
|
|
|
protected static class FlywayJdbcOperationsDependencyConfiguration
|
|
|
|
|
extends JdbcOperationsDependsOnPostProcessor {
|
|
|
|
|
|
|
|
|
|
public FlywayJdbcDependencyConfiguration() {
|
|
|
|
|
public FlywayJdbcOperationsDependencyConfiguration() {
|
|
|
|
|
super("flyway");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|