Class DinoFlaywayConfiguration
java.lang.Object
cn.dinodev.spring.data.autoconfig.DinoFlaywayConfiguration
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
@Configuration
@ConditionalOnClass(org.flywaydb.core.Flyway.class)
@ConditionalOnProperty(prefix="spring.flyway",
name="enabled",
matchIfMissing=true)
@EnableConfigurationProperties(org.springframework.boot.autoconfigure.flyway.FlywayProperties.class)
@EnableAutoConfiguration(exclude=org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration.class)
public class DinoFlaywayConfiguration
extends Object
implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
- Author:
- Cody Lu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.autoconfigure.flyway.FlywayConfigurationCustomizerorg.flywaydb.core.api.configuration.FluentConfigurationflywayConfiguration(org.springframework.boot.autoconfigure.flyway.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<org.springframework.boot.autoconfigure.flyway.FlywayConfigurationCustomizer> fluentConfigurationCustomizers, org.springframework.beans.factory.ObjectProvider<org.flywaydb.core.api.callback.Callback> callbacks) voidonApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
DinoFlaywayConfiguration
public DinoFlaywayConfiguration()
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
-
flaywayConfigurationCustomizer
@Bean public org.springframework.boot.autoconfigure.flyway.FlywayConfigurationCustomizer flaywayConfigurationCustomizer() -
flywayConfiguration
@Bean public org.flywaydb.core.api.configuration.FluentConfiguration flywayConfiguration(org.springframework.boot.autoconfigure.flyway.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<org.springframework.boot.autoconfigure.flyway.FlywayConfigurationCustomizer> fluentConfigurationCustomizers, org.springframework.beans.factory.ObjectProvider<org.flywaydb.core.api.callback.Callback> callbacks)
-