Skip to content

Commit 42db9a6

Browse files
authored
Add Springboot Hello World sample for Java 11 (GoogleCloudPlatform#1391)
* Springboot sample * Update comments * Update comments
1 parent 9c54442 commit 42db9a6

File tree

9 files changed

+605
-0
lines changed

9 files changed

+605
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Spring Boot Application Google App Engine Standard with Java 11
2+
3+
This sample shows how to deploy a Spring Boot application with an exploded fatjar
4+
to Google App Engine, using the `entrypoint` element in the [app.yaml](app.yaml)
5+
to start your application. The sample uses the `java` command is used to compile
6+
and execute the Java source code.
7+
8+
## Setup
9+
10+
See [Prerequisites](../README.md#Prerequisites).
11+
12+
## Deploying
13+
14+
```bash
15+
mvn clean package appengine:deploy -Dapp.deploy.projectId=<your-project-id>
16+
```
17+
18+
To view your app, use command:
19+
```
20+
gcloud app browse
21+
```
22+
Or navigate to http://<project-id>.appspot.com URL.

appengine-java11/springboot-helloworld/mvnw

Lines changed: 286 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)