@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value=org.flywaydb.core.Flyway.class) @Conditional(value=org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration.FlywayDataSourceCondition.class) @ConditionalOnProperty(prefix="spring.flyway", name="enabled", matchIfMissing=true) @AutoConfigureAfter(value={DataSourceAutoConfiguration.class,JdbcTemplateAutoConfiguration.class,HibernateJpaAutoConfiguration.class}) @Import(value={org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration.FlywayEntityManagerFactoryDependsOnPostProcessor.class,org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration.FlywayJdbcOperationsDependsOnPostProcessor.class,FlywayAutoConfiguration.FlywayNamedParameterJdbcOperationsDependencyConfiguration.class}) public class FlywayAutoConfiguration extends Object
Auto-configuration
for Flyway database migrations.Modifier and Type | Class and Description |
---|---|
static class |
FlywayAutoConfiguration.FlywayConfiguration |
protected static class |
FlywayAutoConfiguration.FlywayNamedParameterJdbcOperationsDependencyConfiguration
Post processor to ensure that
NamedParameterJdbcOperations beans depend on
any Flyway beans. |
Constructor and Description |
---|
FlywayAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.boot.autoconfigure.flyway.FlywaySchemaManagementProvider |
flywayDefaultDdlModeProvider(ObjectProvider<org.flywaydb.core.Flyway> flyways) |
org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration.StringOrNumberToMigrationVersionConverter |
stringOrNumberMigrationVersionConverter() |
@Bean @ConfigurationPropertiesBinding public org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration.StringOrNumberToMigrationVersionConverter stringOrNumberMigrationVersionConverter()
@Bean public org.springframework.boot.autoconfigure.flyway.FlywaySchemaManagementProvider flywayDefaultDdlModeProvider(ObjectProvider<org.flywaydb.core.Flyway> flyways)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.