是否可以将 Java Servlet 部署到 GAE?
是否可以将 Java Servlet 部署到 GAE,或者服务器是否需要托管在其他地方?
Is it possible to deploy a Java Servlet to GAE, or does the server need to be hosted elsewhere?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
简短的回答:是
稍长的回答:
App Engine 使用 Jetty servlet 容器来托管应用程序并支持 Java Servlet API 版本 2.4。请记住,您必须遵守相当多的限制(来源< /a>):
com.google.apphosting.api.DeadlineExceededException
。请务必阅读沙盒,查看以下示例什么会起作用,什么不会起作用。
Short answer: Yes
Slightly longer answer:
App Engine uses the Jetty servlet container to host applications and supports the Java Servlet API version 2.4. Keep in mind though that there are quite a few restrictions in place that you have to respect (source):
com.google.apphosting.api.DeadlineExceededException
is thrown.Be sure to also read up on The Sandbox to see examples of what will and will not work.
您可以将基本servlet部署到GAE,但是您还需要执行其他操作才能让GAE接受它。
我强烈推荐对该主题进行快速网络搜索。您会发现有大量这方面的资源,包括 GAE 站点本身的文档。
You can deploy a basic servlet to GAE, but there are additional things you need to do for GAE to accept it.
I would highly recommend a quick web search on the topic. You will find that there are tons of resources for this, including the documentation at the GAE site itself.