简体   繁体   中英

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??

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

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM