[英]Can you use Java EE frameworks with the Google App Engine?
I have been working on a small web app using the Stripes framework. 我一直在使用Stripes框架开发一个小型Web应用程序。 Now that the Google App Engine has added support for Java, I am wondering if I can convert it to run in the Google App Engine to save costs on hosting.
既然Google App Engine已经添加了对Java的支持,我想知道我是否可以将其转换为在Google App Engine中运行以节省托管成本。
Yes, it supports servlets, so it should support Stripes just fine. 是的,它支持servlet,所以它应该支持Stripes就好了。
According to the App Engine documentation , 根据App Engine 文档 ,
App Engine uses the Java Servlet standard for web applications.
App Engine将Java Servlet标准用于Web应用程序。 You provide your app's servlet classes, JavaServer Pages (JSPs), static files and data files, along with the deployment descriptor (the web.xml file) and other configuration files, in a standard WAR directory structure.
您可以在标准WAR目录结构中提供应用程序的servlet类,JavaServer Pages(JSP),静态文件和数据文件,以及部署描述符(web.xml文件)和其他配置文件。 App Engine serves requests by invoking servlets according to the deployment descriptor.
App Engine根据部署描述符调用servlet来处理请求。
There seems to be a little snag (and workaround) because of the missing access to a local temporary directory. 由于缺少对本地临时目录的访问,似乎有一点障碍(和解决方法) 。 You need to provide your own file upload facility (or disable the feature).
您需要提供自己的文件上载工具(或禁用该功能)。
Took this from RoR on GAE? 从GAR上的RoR拿到这个?
More information: 更多信息:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.