一千萬個為什麽

搜索

我可以在GAE上使用Spring嗎?

我可以使用 Spring Webflow/MVCSpring Security 和Hibernate在 Google App Engine 上?

是否有可以在GAE上使用的java框架的列表/摘要?

最佳答案

Will it Play In Java lists frameworks, languages and libraries that work (or not) in Google App Engine. At present, the information listed is:

Spring MVC

Version     2.5.6
Status  COMPATIBLE

要查看在App Engine上運行的Spring的MVC框架,請查看autoshoppe示例應用程序。如果您正在使用Spring表單(例如,使用spring-form.tld標記庫和子類化SimpleFormController),則需要為您的屬性註冊自定義編輯器。 http://groups.google.com/group中對此進行了介紹/谷歌-AppEngine上的Java/browse_thread /線程/ d93fd7385bf85bf7

春天ORM

Version     2.5.6
Status  COMPATIBLE

要使Spring使用App Engine提供的JPA接口,請按照 http://objectuser.wordpress.com/2009/05/19/spring-jpa-in-google-app-engine/ ,討論了對javax依賴的解決方法。 @PersistenceContext需要命名。 http://groups.google中提供了更復雜的解決方法。 COM /組/谷歌應用服務引擎的Java/browse_thread /線程/ 187d41712ec1d394

春季安全

Version(s)  ?
Status  SEMI-COMPATIBLE

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 春季安全 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.

過冬

Versions     All
Status  INCOMPATIBLE

You cannot currently use 過冬 directly. The differences between the App Engine datastore and SQL were too great to get the standard 過冬 up and running under App Engine. App Engine does support JDO and JPA, so you may be able to convert your 過冬 code to use one of these ORM interfaces.

我想它也適用於Spring 3.0,我會很快嘗試並分享結果。

UPDATE: I tried a Spring MVC Hello World with Spring 3.0.6 with Google App Engine and it worked perfectly, both locally and in the cloud. The drawback though, is longer load time when a new instance starts.

轉載註明原文: 我可以在GAE上使用Spring嗎?