简体   繁体   English

如何将SpringBoot REST应用程序部署到Google App Engine?

[英]How to deploy a SpringBoot REST Application to Google App Engine?

Tried 试着

Subscribed trial for GoogleAppEngine. 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. 在我的例子中,我有一个spring boot应用程序,它生成一个jar文件。 It runs with a embedded container and I believe Google may have an alternate to deploy using Docker or some other way. 它使用嵌入式容器运行,我相信Google可能会使用Docker或其他方式进行部署。 But how? 但是怎么样?

There is no pointer or any details on how to run this in Google managed platform as far as I searched. 就我搜索而言,没有指针或任何有关如何在Google托管平台中运行此功能的详细信息。

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). Google App Engine仍然使用低于Spring Boot(即Servlet 3.0)要求的Servlet 2.5。

There is a way to workaround that, check the documentation for more details 有一种解决方法,请查看文档以获取更多详细信息

Spring Boot requires Servlet 3.0 which GAE does not have. Spring Boot需要GAE没有的Servlet 3.0。 WorkAround is to have a " spring-boot-legacy " dependency. WorkAround具有“ spring-boot-legacy ”依赖性。 You can check further how to implement: https://github.com/scratches/spring-boot-sample-gae 您可以进一步查看如何实施: https//github.com/scratches/spring-boot-sample-gae

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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