类 TestDatabaseAutoConfiguration
- java.lang.Object
- org.springframework.boot.test.autoconfigure.jdbc.TestDatabaseAutoConfiguration
@Configuration public class TestDatabaseAutoConfiguration extends Object
Auto-configuration for a test database.- 从以下版本开始:
- 1.4.0
- 另请参阅:
AutoConfigureTestDatabase
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 DataSource
dataSource()
static org.springframework.boot.test.autoconfigure.jdbc.TestDatabaseAutoConfiguration.EmbeddedDataSourceBeanFactoryPostProcessor
embeddedDataSourceBeanFactoryPostProcessor()
方法详细资料
dataSource
@Bean @ConditionalOnProperty(prefix="spring.test.database", name="replace", havingValue="AUTO_CONFIGURED") @ConditionalOnMissingBean public DataSource dataSource()
embeddedDataSourceBeanFactoryPostProcessor
@Bean @ConditionalOnProperty(prefix="spring.test.database", name="replace", havingValue="ANY", matchIfMissing=true) public static org.springframework.boot.test.autoconfigure.jdbc.TestDatabaseAutoConfiguration.EmbeddedDataSourceBeanFactoryPostProcessor embeddedDataSourceBeanFactoryPostProcessor()