@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Documented @Inherited @ImportAutoConfiguration @PropertyMapping(value="spring.test.database") public @interface AutoConfigureTestDatabase
DataSource
. In the case
of multiple DataSource
beans, only the @Primary
DataSource
is considered.TestDatabaseAutoConfiguration
Modifier and Type | Optional Element and Description |
---|---|
EmbeddedDatabaseConnection |
connection
The type of connection to be established when
replacing the
DataSource. |
AutoConfigureTestDatabase.Replace |
replace
Determines what type of existing DataSource bean can be replaced.
|
@PropertyMapping(skip=ON_DEFAULT_VALUE) public abstract AutoConfigureTestDatabase.Replace replace
public abstract EmbeddedDatabaseConnection connection
replacing
the
DataSource. By default will attempt to detect the connection based on the
classpath.Copyright © 2021 Pivotal Software, Inc.. All rights reserved.