Class GcpSpannerEmulatorAutoConfiguration

java.lang.Object
com.google.cloud.spring.autoconfigure.spanner.GcpSpannerEmulatorAutoConfiguration

@AutoConfiguration @AutoConfigureBefore({GcpSpannerAutoConfiguration.class,GcpContextAutoConfiguration.class}) @EnableConfigurationProperties(GcpSpannerProperties.class) @ConditionalOnProperty(prefix="spring.cloud.gcp.spanner.emulator", name="enabled", havingValue="true") public class GcpSpannerEmulatorAutoConfiguration extends Object
Provides auto-configuration to use the Spanner emulator if enabled.
Since:
1.2.3
  • Constructor Details

  • Method Details

    • credentialsProvider

      @Bean @ConditionalOnMissingBean public com.google.api.gax.core.CredentialsProvider credentialsProvider()
    • spannerOptions

      @Bean @ConditionalOnMissingBean public com.google.cloud.spanner.SpannerOptions spannerOptions(Optional<SpannerOptionsCustomizer> customizer) throws IOException
      Throws:
      IOException