@Configuration @ConditionalOnMissingBean(value=org.flywaydb.core.Flyway.class) @EnableConfigurationProperties(value=FlywayProperties.class) public static class FlywayAutoConfiguration.FlywayConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
FlywayAutoConfiguration.FlywayConfiguration.FlywayInitializerJpaDependencyConfiguration
Additional configuration to ensure that
EntityManagerFactory beans
depend-on the flywayInitializer bean. |
Constructor and Description |
---|
FlywayConfiguration(FlywayProperties properties,
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<FlywayMigrationStrategy> migrationStrategy,
org.springframework.beans.factory.ObjectProvider<List<org.flywaydb.core.api.callback.FlywayCallback>> flywayCallbacks) |
Modifier and Type | Method and Description |
---|---|
org.flywaydb.core.Flyway |
flyway() |
FlywayMigrationInitializer |
flywayInitializer(org.flywaydb.core.Flyway flyway) |
public FlywayConfiguration(FlywayProperties properties, 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<FlywayMigrationStrategy> migrationStrategy, org.springframework.beans.factory.ObjectProvider<List<org.flywaydb.core.api.callback.FlywayCallback>> flywayCallbacks)
@Bean @ConfigurationProperties(prefix="spring.flyway") public org.flywaydb.core.Flyway flyway()
@Bean @ConditionalOnMissingBean public FlywayMigrationInitializer flywayInitializer(org.flywaydb.core.Flyway flyway)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.