@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() |
SpannerOptions |
spannerOptions(Optional<SpannerOptionsCustomizer> customizer) |
public GcpSpannerEmulatorAutoConfiguration(GcpSpannerProperties properties, GcpProjectIdProvider projectIdProvider)
@Bean @ConditionalOnMissingBean public com.google.api.gax.core.CredentialsProvider credentialsProvider()
@Bean @ConditionalOnMissingBean public SpannerOptions spannerOptions(Optional<SpannerOptionsCustomizer> customizer) throws IOException
IOException
Copyright © 2021. All rights reserved.