繁体   English   中英

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

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

试着

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

在我的例子中,我有一个spring boot应用程序,它生成一个jar文件。 它使用嵌入式容器运行,我相信Google可能会使用Docker或其他方式进行部署。 但是怎么样?

就我搜索而言,没有指针或任何有关如何在Google托管平台中运行此功能的详细信息。

任何帮助或参考文档!! 候补?

Google App Engine仍然使用低于Spring Boot(即Servlet 3.0)要求的Servlet 2.5。

有一种解决方法,请查看文档以获取更多详细信息

Spring Boot需要GAE没有的Servlet 3.0。 WorkAround具有“ spring-boot-legacy ”依赖性。 您可以进一步查看如何实施: https//github.com/scratches/spring-boot-sample-gae

暂无
暂无

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

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