@Configuration(proxyBeanMethods=false) @AutoConfigureBefore(value=DataSourceAutoConfiguration.class) public class TestDatabaseAutoConfiguration extends Object
AutoConfigureTestDatabase
Constructor and Description |
---|
TestDatabaseAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
DataSource |
dataSource(Environment environment) |
static org.springframework.boot.test.autoconfigure.jdbc.TestDatabaseAutoConfiguration.EmbeddedDataSourceBeanFactoryPostProcessor |
embeddedDataSourceBeanFactoryPostProcessor() |
@Bean @ConditionalOnProperty(prefix="spring.test.database", name="replace", havingValue="AUTO_CONFIGURED") @ConditionalOnMissingBean public DataSource dataSource(Environment environment)
@Bean @ConditionalOnProperty(prefix="spring.test.database", name="replace", havingValue="ANY", matchIfMissing=true) public static org.springframework.boot.test.autoconfigure.jdbc.TestDatabaseAutoConfiguration.EmbeddedDataSourceBeanFactoryPostProcessor embeddedDataSourceBeanFactoryPostProcessor()
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.