@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(org.springframework.core.env.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(org.springframework.core.env.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 © 2019 Pivotal Software, Inc.. All rights reserved.