问题描述
我正在使用 Play-Framework 2.4.x
, MongoDB
和创建项目Java 8
。但是使用 Play-Framework
, Java
没有好的mongo插件。 Play-Framework
在Jongo,Mongo-Morphia这样的模块部分中提到了一些插件,但所有插件都较旧,并且更新已关闭。
I am creating a project using Play-Framework 2.4.x
, MongoDB
and Java 8
. But with Play-Framework
there are no good mongo plugins for Java
. Play-Framework
mentions some plugin in there module section like Jongo, Mongo-Morphia but all are older and there updated are closed.
我可以选择将Spring-Data-Mongo与Play-Framework一起使用,但我的首要任务是为提供支持和更新的插件Play-Framework
和 Java
。如果有好的插件,请推荐我?
I have an option to use Spring-Data-Mongo with Play-Framework, but my first priority is for plugin that have support and updates for Play-Framework
and Java
. Please recommend me, if there is are good plugins?
推荐答案
要将MongoDB与Play框架用于Java,最好使用Native Jongo库或Morphia库。您可以为它创建抽象层并使用它。 Morphia库由MongoDB社区维护,用于Java API,两个库仍然对Native库有效。此外,我花了很多时间为Play选择正确的插件,但没有运气。
To use MongoDB with Play framework for Java, it would be better to use Native Jongo library or Morphia library. You can create abstraction layer for it and use it. Morphia library has been maintained by MongoDB community for Java API and both libraries are still active for Native library. Also i spent lots of time to choose correct plugin for Play, yet there was no luck.
这篇关于Play-Framework 2.4.x与MongoDB和Java 8一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!