簡體   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