接口 EmbeddedDatabaseConfigurer
public interface EmbeddedDatabaseConfigurer
EmbeddedDatabaseConfigurer
encapsulates the configuration required to create, connect to, and shut down a specific type of embedded database such as HSQL, H2, or Derby.- 从以下版本开始:
- 3.0
- 作者:
- Keith Donald, Sam Brannen
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
configureConnectionProperties(ConnectionProperties properties, String databaseName)
Configure the properties required to create and connect to the embedded database.void
shutdown(DataSource dataSource, String databaseName)
Shut down the embedded database instance that backs the suppliedDataSource
.
方法详细资料
configureConnectionProperties
void configureConnectionProperties(ConnectionProperties properties, String databaseName)
Configure the properties required to create and connect to the embedded database.- 参数:
properties
- connection properties to configuredatabaseName
- the name of the embedded database
shutdown
void shutdown(DataSource dataSource, String databaseName)
Shut down the embedded database instance that backs the suppliedDataSource
.- 参数:
dataSource
- the correspondingDataSource
databaseName
- the name of the database being shut down