试过
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
问题
就我而言,我有一个生成jar文件的spring启动应用程序。它使用嵌入式容器运行,我相信Google可能会使用Docker或其他方式进行部署。但是如何?
就我搜索而言,没有关于如何在Google托管平台上运行此功能的指针或任何详细信息。
对文档的任何帮助或参考!!交替??
答案 0 :(得分:9)
您现在可以使用 Google App Engine Java Flexible Environment - Java 8 Runtime :
https://cloud.google.com/appengine/docs/flexible/java/dev-java-only
基于Docker
<强>更新强>
您现在可以在 App Engine标准环境:
中使用Java 8答案 1 :(得分:7)
Google App Engine仍然使用低于Spring Boot(即Servlet 3.0)要求的Servlet 2.5。
有一种解决方法,请检查the documentation for more details
答案 2 :(得分:3)
Spring Boot需要GAE没有的Servlet 3.0。 WorkAround是一个&#34; spring-boot-legacy
&#34;依赖。您可以进一步查看如何实施:https://github.com/scratches/spring-boot-sample-gae