@Configuration @AutoConfigureBefore(value=DataSourceAutoConfiguration.class) public class TestDatabaseAutoConfiguration extends Object
AutoConfigureTestDatabase
Modifier and Type | Method and Description |
---|---|
DataSource |
dataSource() |
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()
@Bean @ConditionalOnProperty(prefix="spring.test.database", name="replace", havingValue="ANY", matchIfMissing=true) public static org.springframework.boot.test.autoconfigure.jdbc.TestDatabaseAutoConfiguration.EmbeddedDataSourceBeanFactoryPostProcessor embeddedDataSourceBeanFactoryPostProcessor()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.