@Configuration
@Order(value=-2147483648)
@ConditionalOnProperty(name="embedded.postgresql.enabled",
matchIfMissing=true)
@EnableConfigurationProperties(value=PostgreSQLProperties.class)
public class EmbeddedPostgreSQLBootstrapConfiguration
extends Object
| Constructor and Description |
|---|
EmbeddedPostgreSQLBootstrapConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.testcontainers.containers.GenericContainer |
postgresql(org.springframework.core.env.ConfigurableEnvironment environment,
PostgreSQLProperties properties,
PostgreSQLStatusCheck postgreSQLStatusCheck) |
PostgreSQLStatusCheck |
postgresSQLStartupCheckStrategy(PostgreSQLProperties properties) |
public EmbeddedPostgreSQLBootstrapConfiguration()
@Bean @ConditionalOnMissingBean public PostgreSQLStatusCheck postgresSQLStartupCheckStrategy(PostgreSQLProperties properties)
@Bean(name="embeddedPostgreSql",
destroyMethod="stop")
public org.testcontainers.containers.GenericContainer postgresql(org.springframework.core.env.ConfigurableEnvironment environment,
PostgreSQLProperties properties,
PostgreSQLStatusCheck postgreSQLStatusCheck)
Copyright © 2018. All rights reserved.