@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
@Documented
@Inherited
@ImportAutoConfiguration
@PropertyMapping(value="spring.test.database")
public @interface AutoConfigureTestDatabase
DataSource.TestDatabaseAutoConfiguration| Modifier and Type | Optional Element and Description |
|---|---|
org.springframework.boot.jdbc.EmbeddedDatabaseConnection |
connection
The type of connection to be established when
replacing the data
source. |
AutoConfigureTestDatabase.Replace |
replace
Determines what type of existing DataSource beans can be replaced.
|
@PropertyMapping(skip=ON_DEFAULT_VALUE) public abstract AutoConfigureTestDatabase.Replace replace
public abstract org.springframework.boot.jdbc.EmbeddedDatabaseConnection connection
replacing the data
source. By default will attempt to detect the connection based on the classpath.