Spring Boot on GCP
Search…
Cloud Shell
Use Cloud Shell to build and test applications for development purpose.
You can run and test a an application directly within Cloud Shell. Cloud Shell has many tools pre-installed, such OpenJDK, Maven, Gradle, and more. Cloud Shell is meant for development and not meant for production or long running processes.

Getting Started

Clone

1
cd $HOME
2
git clone https://github.com/saturnism/jvm-helloworld-by-example
3
cd jvm-helloworld-by-example/helloworld-springboot-tomcat
Copied!

Build

1
./mvnw package
Copied!

Run

Plugin
JAR
1
./mvnw spring-boot:run
Copied!
1
java -jar target/helloworld.jar
Copied!

Connect

From Cloud Shell, click Web Preview, then click Preview on port 8080.
Web Preview