Spring Cloud GCP Reference Documentation

Authors

João André Martins, Jisha Abubaker, Ray Tsang, Mike Eltsufin, Artem Bilan, Andreas Berger, Balint Pato, Chengyuan Zhao

1.1.0.M1

Copies of this document may be made for your own use and for distribution to others, provided that you do not charge any fee for such copies and further provided that each copy contains this Copyright Notice, whether distributed in print or electronically.


Table of Contents

1. Introduction
2. Dependency Management
3. Getting started
3.1. Spring Initializr
3.2. Code Samples
3.3. Code Challenges
3.4. Getting Started Guides
4. Spring Cloud GCP Core
4.1. Project ID
4.2. Credentials
4.2.1. Scopes
4.2.2. Spring Initializr
5. Spring Cloud GCP for Pub/Sub
5.1. Pub/Sub operations abstraction
5.1.1. Publishing to a topic
5.1.2. Subscribing to a subscription
5.1.3. Pulling messages from a subscription
5.2. Pub/Sub management
5.2.1. Creating a topic
5.2.2. Deleting a topic
5.2.3. Listing topics
5.2.4. Creating a subscription
5.2.5. Deleting a subscription
5.2.6. Listing subscriptions
5.3. Configuration
6. Spring Resources
6.1. Google Cloud Storage
6.2. Configuration
7. Spring JDBC
7.1. Prerequisites
7.2. Spring Boot Starter for Google Cloud SQL
7.2.1. DataSource creation flow
7.2.2. Troubleshooting tips
Connection issues
Errors like c.g.cloud.sql.core.SslSocketFactory : Re-throwing cached exception due to attempt to refresh instance information too soon after error
PostgreSQL: java.net.SocketException: already connected issue
8. Spring Integration
8.1. Channel Adapters for Google Cloud Pub/Sub
8.1.1. Inbound channel adapter
8.1.2. Outbound channel adapter
8.1.3. Header mapping
8.2. Channel Adapters for Google Cloud Storage
8.2.1. Inbound channel adapter
8.2.2. Inbound streaming channel adapter
8.2.3. Outbound channel adapter
9. Spring Cloud Stream
9.1. Overview
9.2. Configuration
10. Spring Cloud Sleuth
10.1. Tracing
10.2. Spring Boot Starter for Stackdriver Trace
10.3. Integration with Logging
11. Stackdriver Logging Support
11.1. Web MVC Interceptor
11.2. Logback Support
11.2.1. Log via API
11.2.2. Log via Console
12. Spring Cloud Config
12.1. Configuration
12.2. Quick start
12.3. Refreshing the configuration at runtime
13. Spring Data Cloud Spanner
13.1. Configuration
13.1.1. Cloud Spanner settings
13.1.2. Repository settings
13.1.3. Autoconfiguration
13.2. Object Mapping
13.2.1. Constructors
13.2.2. Table
SpEL expressions for table names
13.2.3. Primary Keys
13.2.4. Columns
13.2.5. Embedded Objects
13.2.6. Relationships
13.2.7. Supported Types
13.2.8. Lists
13.2.9. Lists of Structs
13.2.10. Custom types
13.2.11. Custom Converter for Struct Array Columns
13.3. Spanner Template
13.3.1. SQL Query
13.3.2. Read
13.3.3. Advanced reads
Stale read
Read from a secondary index
Read with offsets and limits
Sorting
Partial read
Summary of options for Query vs Read
13.3.4. Write / Update
Insert
Update
Upsert
Partial Update
13.3.5. Transactions
Read/Write Transaction
Read-only Transaction
13.4. Repositories
13.4.1. CRUD Repository
13.4.2. Paging and Sorting Repository
13.4.3. Spanner Repository
13.4.4. Query methods by convention
13.4.5. Custom SQL query methods
Query methods with named queries properties
Query methods with annotation
13.4.6. Projections
13.4.7. REST Repositories
13.5. Database and Schema Admin
14. Cloud Foundry