gpt4 book ai didi

java - 我们可以在不做任何更改的情况下将 Java EE war 文件部署到 Google App Engine 吗?

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:06:33 27 4
gpt4 key购买 nike

您好,我有一个在 tomcat 7 和 mysql 5.5 上运行的 jee 应用程序(war 文件)。我可以在不做任何修改的情况下在 google-App-Engine 上运行相同的 war 文件吗?如果是怎么办?

最佳答案

不,你不能。 App Engine 至少需要名为 appengine-web.xml 的配置文件。

In addition to the web.xml deployment descriptor, an App Engine Java application uses a configuration file, named appengine-web.xml, to specify the app's registered application ID and the version identifier of the latest code, and to identify which files in the app's WAR are static files (like images) and which are resource files used by the application.

除此之外,这取决于您的应用程序要求。 App Engine 提供两种环境 - sandboxedManeged VMs .如果是沙盒环境,还有其他 restrictions你必须考虑:

  • 对文件系统的只读权限
  • 60s 请求限制(在自动缩放类型的情况下)
  • 32 MB 请求/响应大小限制
  • JRE 类的子集(JRE 类白名单)
  • 线程不能“长寿”于创建它们的请求
  • 每个请求最多 50 个并发线程

关于java - 我们可以在不做任何更改的情况下将 Java EE war 文件部署到 Google App Engine 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35985734/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com