raksja
raksja

Reputation: 4029

How to deploy a SpringBoot REST Application to Google App Engine?

Tried

Subscribed trial for GoogleAppEngine.

1. INSTALLED GOOGLE APP ENGINE SDK
2. Downloaded the sample Java started code and deployed it. Working fine.
3. Used $appcfg.sh -A <appname> update target/appengine-try-java-1.0 to deploy
4. In this case, its a folder with all the webapp related stuffs

Question

In my case, I have a spring boot application which generates a jar file. It runs with a embedded container and I believe Google may have an alternate to deploy using Docker or some other way. But how?

There is no pointer or any details on how to run this in Google managed platform as far as I searched.

Any help or reference to documentation!! Alternates??

Upvotes: 7

Views: 9001

Answers (3)

vincent mathew
vincent mathew

Reputation: 4378

Spring Boot requires Servlet 3.0 which GAE does not have. WorkAround is to have a "spring-boot-legacy" dependency. You can check further how to implement: https://github.com/scratches/spring-boot-sample-gae

Upvotes: 3

Stephane Nicoll
Stephane Nicoll

Reputation: 33151

Google App Engine still uses Servlet 2.5 that is below the requirements of Spring Boot (i.e. Servlet 3.0).

There is a way to workaround that, check the documentation for more details

Upvotes: 7

Related Questions