Class GcpStorageAutoConfiguration

java.lang.Object
com.google.cloud.spring.autoconfigure.storage.GcpStorageAutoConfiguration

@AutoConfiguration @ConditionalOnClass({GoogleStorageProtocolResolverSettings.class,com.google.cloud.storage.Storage.class}) @ConditionalOnProperty(value="spring.cloud.gcp.storage.enabled", matchIfMissing=true) @EnableConfigurationProperties({GcpProperties.class,GcpStorageProperties.class}) @Import(GoogleStorageProtocolResolver.class) public class GcpStorageAutoConfiguration extends Object
An auto-configuration for Google GoogleStorageProtocolResolverSettings bean definition. Also it Import a GoogleStorageProtocolResolver to register it with the DefaultResourceLoader.
See Also:
  • Constructor Details

  • Method Details

    • storage

      @Bean @ConditionalOnMissingBean public com.google.cloud.storage.Storage storage() throws IOException
      Throws:
      IOException