@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}) 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,
org.springframework.core.io.ResourceLoader resourceLoader,
org.springframework.beans.factory.ObjectProvider<DataSource> dataSource,
org.springframework.beans.factory.ObjectProvider<DataSource> flywayDataSource,
org.springframework.beans.factory.ObjectProvider<FlywayConfigurationCustomizer> fluentConfigurationCustomizers,
org.springframework.beans.factory.ObjectProvider<org.flywaydb.core.api.migration.JavaMigration> javaMigrations,
org.springframework.beans.factory.ObjectProvider<org.flywaydb.core.api.callback.Callback> callbacks) |
FlywayMigrationInitializer |
flywayInitializer(org.flywaydb.core.Flyway flyway,
org.springframework.beans.factory.ObjectProvider<FlywayMigrationStrategy> migrationStrategy) |
@Bean public org.flywaydb.core.Flyway flyway(FlywayProperties properties, DataSourceProperties dataSourceProperties, org.springframework.core.io.ResourceLoader resourceLoader, org.springframework.beans.factory.ObjectProvider<DataSource> dataSource, @FlywayDataSource org.springframework.beans.factory.ObjectProvider<DataSource> flywayDataSource, org.springframework.beans.factory.ObjectProvider<FlywayConfigurationCustomizer> fluentConfigurationCustomizers, org.springframework.beans.factory.ObjectProvider<org.flywaydb.core.api.migration.JavaMigration> javaMigrations, org.springframework.beans.factory.ObjectProvider<org.flywaydb.core.api.callback.Callback> callbacks)
@Bean @ConditionalOnMissingBean public FlywayMigrationInitializer flywayInitializer(org.flywaydb.core.Flyway flyway, org.springframework.beans.factory.ObjectProvider<FlywayMigrationStrategy> migrationStrategy)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.