@Configuration(proxyBeanMethods=false)
@AutoConfigureBefore(value={GcpSpannerAutoConfiguration.class,GcpContextAutoConfiguration.class})
@EnableConfigurationProperties(value=GcpSpannerProperties.class)
@ConditionalOnProperty(prefix="spring.cloud.gcp.spanner.emulator",
name="enabled",
havingValue="true")
public class GcpSpannerEmulatorAutoConfiguration
extends Object
| Constructor and Description |
|---|
GcpSpannerEmulatorAutoConfiguration(GcpSpannerProperties properties,
GcpProjectIdProvider projectIdProvider) |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.gax.core.CredentialsProvider |
credentialsProvider() |
com.google.cloud.spanner.SpannerOptions |
spannerOptions(Optional<SpannerOptionsCustomizer> customizer) |
public GcpSpannerEmulatorAutoConfiguration(GcpSpannerProperties properties, GcpProjectIdProvider projectIdProvider)
@Bean @ConditionalOnMissingBean public com.google.api.gax.core.CredentialsProvider credentialsProvider()
@Bean @ConditionalOnMissingBean public com.google.cloud.spanner.SpannerOptions spannerOptions(Optional<SpannerOptionsCustomizer> customizer) throws IOException
IOExceptionCopyright © 2024. All rights reserved.