Google App Engine对Spring框架的支持 [英] Spring framework support with Google App Engine

查看:70
本文介绍了Google App Engine对Spring框架的支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google App Engine是否支持Spring框架?

Does Google App Engine support the Spring framework?

推荐答案

如果说"Google Apps"实际上是在谈论"Google App Engine"(如标签所示),则大部分".请参见

If by saying "Google Apps" you're in fact talking about "Google App Engine" (as the tag suggests), then, "mostly". See here (I'm pointing to the cached page because the "Will it Play in App Engine" google groups post seems to be just spinning interminably). Quoting:

编辑:根据下面@hleinone的评论,大多数"答案现在变成是"-Spring Security 3.x在Google App Engine上开箱即用"运行(还没有亲自尝试过,我只是相信有问题的评论!).[]

Edit: per @hleinone's comment below, the "mostly" answer has now become "yes" -- Spring Security 3.x runs "out-of-the-box" on Google App Engine (haven't tried it personally, I'm just trusting the comment in question!). [[end-of-edit]]

Spring MVC
Version: 2.5.6
Status: COMPATIBLE

查看Spring的MVC框架的运行情况在App Engine上,查看autoshoppe示例应用程序.如果您正在使用Spring表单(例如,使用spring-form.tld标记库和子类化SimpleFormController),您将需要注册自定义编辑器为您的财产.这涵盖了在 http://groups.google.com/group/google-appengine-java/browse_thread/thread/d93fd7385bf85bf7 .

Spring ORM
Version: 2.5.6
Status: COMPATIBLE

要让Spring与App一起使用引擎提供的JPA接口,请遵循的说明 http://objectuser.wordpress.com/2009/05/19/spring-jpa-in-google-app-engine/,讨论了解决方法需要依赖javax.naming@PersistenceContext.更复杂可通过以下方法获得解决方法 http://groups.google.com/group/google-appengine-java/browse_thread/thread/187d41712ec1d394 .

To get Spring working with the App Engine-provided JPA interface, follow the instructions at http://objectuser.wordpress.com/2009/05/19/spring-jpa-in-google-app-engine/, which discusses a workaround to the dependency on javax.naming needed for @PersistenceContext. A more complex workaround is available at http://groups.google.com/group/google-appengine-java/browse_thread/thread/187d41712ec1d394.

Spring Security
Version(s): ?
Status: SEMI-COMPATIBLE

要解决一个ClassNotFoundException,您可以使用重新编译的库版本这增加了一个StringInsensitiveComparator类-在以下位置提供下载 http://www.google-app-engine.com/blog/post/Spring-security-fix-for-google-app-engine.aspx .看 http://www.dotnetguru2.org/bmarchesson/index.php?p=1100 获取有关如何获得Spring Security的提示与App Engine和GWT一起运行(在法语).看 http://groups.google.com/group/google-appengine-java/browse_thread/thread/964e7f5e42840d9c 讨论集成问题.

To work around a ClassNotFoundException, you can use a re-compiled version of the library which adds a StringInsensitiveComparator class -- the download is provided at http://www.google-app-engine.com/blog/post/Spring-security-fix-for-google-app-engine.aspx. See http://www.dotnetguru2.org/bmarchesson/index.php?p=1100 for tips on how to get Spring Security running with App Engine and GWT (in French). See http://groups.google.com/group/google-appengine-java/browse_thread/thread/964e7f5e42840d9c for discussion on the integration.

这篇关于Google App Engine对Spring框架的支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆