io.smilego.tenant.flyway.InitialCacheTenant Maven / Gradle / Ivy
package io.smilego.tenant.flyway;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;
@Configuration
@ConditionalOnProperty(name = "multitenancy.initialize-cache", havingValue = "true", matchIfMissing = true)
public class InitialCacheTenant {
@Bean
@DependsOn(value = "dynamicDataSourceBasedMultiTenantConnectionProvider")
InitialCacheTenantInitializer initialCacheTenant(){
return new InitialCacheTenantInitializer();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy