| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This sample demonstrates how to use Google Cloud Spanner from Google App Engine standard Java 11 environment.
gcloud init
If this is your first time creating an App engine application:
gcloud app create
git clone https://github.com/GoogleCloudPlatform/java-docs-samples
cd java-docs-samples/appengine-java11/appengine-simple-jetty-main mvn install
Update SPANNER_INSTANCE value in [app.yaml](src/main/appengine/app.yaml) with your instance id.
Move into the appengine-java11/spanner directory and compile the app:
cd ../spanner mvn package
mvn clean package appengine:deploy
To see the results of the deployed sample application, open https://PROJECT_ID.appspot.com/spanner in a web browser. Note : by default all the spanner example operations run in order, this operation may take a while to show results.
| Back | FazBrowse Home | New Git URL |