@Configuration(proxyBeanMethods=false) @ConditionalOnMissingBean(value=org.flywaydb.core.Flyway.class) @EnableConfigurationProperties(value={DataSourceProperties.class,FlywayProperties.class}) @Import(value={org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration.FlywayMigrationInitializerEntityManagerFactoryDependsOnPostProcessor.class,org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration.FlywayMigrationInitializerJdbcOperationsDependsOnPostProcessor.class,org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration.FlywayMigrationInitializerNamedParameterJdbcOperationsDependsOnPostProcessor.class,org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration.FlywayMigrationInitializerDslContextDependsOnPostProcessor.class}) public static class FlywayAutoConfiguration.FlywayConfiguration extends Object
Constructor and Description |
---|
FlywayConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.flywaydb.core.Flyway |
flyway(FlywayProperties properties,
DataSourceProperties dataSourceProperties,
ResourceLoader resourceLoader,
ObjectProvider<DataSource> dataSource,
ObjectProvider<DataSource> flywayDataSource,
ObjectProvider<FlywayConfigurationCustomizer> fluentConfigurationCustomizers,
ObjectProvider<org.flywaydb.core.api.migration.JavaMigration> javaMigrations,
ObjectProvider<org.flywaydb.core.api.callback.Callback> callbacks) |
FlywayMigrationInitializer |
flywayInitializer(org.flywaydb.core.Flyway flyway,
ObjectProvider<FlywayMigrationStrategy> migrationStrategy) |
@Bean public org.flywaydb.core.Flyway flyway(FlywayProperties properties, DataSourceProperties dataSourceProperties, ResourceLoader resourceLoader, ObjectProvider<DataSource> dataSource, @FlywayDataSource ObjectProvider<DataSource> flywayDataSource, ObjectProvider<FlywayConfigurationCustomizer> fluentConfigurationCustomizers, ObjectProvider<org.flywaydb.core.api.migration.JavaMigration> javaMigrations, ObjectProvider<org.flywaydb.core.api.callback.Callback> callbacks)
@Bean @ConditionalOnMissingBean public FlywayMigrationInitializer flywayInitializer(org.flywaydb.core.Flyway flyway, ObjectProvider<FlywayMigrationStrategy> migrationStrategy)