Skip to content

gurulnd-git/gae-standard-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gae-standard-example

This is a hello world basic spring boot application added to GCP app engine

https://codelabs.developers.google.com/codelabs/cloud-app-engine-springboot/index.html

$ curl https://start.spring.io/starter.tgz -d packaging=war
-d dependencies=web -d baseDir=gae-standard-example | tar -xzvf - $ cd gae-standard-example

... com.google.cloud.tools appengine-maven-plugin 1.3.2 1 ...

$ mkdir -p src/main/webapp/WEB-INF/ $ touch src/main/webapp/WEB-INF/appengine-web.xml

true java8

@SpringBootApplication @RestController public class DemoApplication { public static void main(String[] args) { SpringApplication.run(DemoApplication.class, args); }

@GetMapping("/") public String hello() { return "hello world!"; } }

Once the application started, click on the Web Preview icon in the Cloud Shell toolbar and choose preview on port 8080. ./mvnw -DskipTests spring-boot:run gcloud app create --region us-central ./mvnw -DskipTests appengine:deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages