简体   繁体   中英

MongoDB and PlayFramework 2.5 with Java

I used to develop on PlayFramework with Scala, but at this time I should use Java. That's why I'm looking for the best approach to work with MongoDB for non blocking queries and with object mapping. It seems like Play! is not so popular among Java developers, so there are not so many options.

I've found MongoDB Reactive Streams Java Driver, but object mapping with it seems so painful.

Could you suggest a better solution?

我建议使用Spring Data MongoDB库-http: //projects.spring.io/spring-data-mongodb/

可能的方法可以是使用Jongo并且更具体PlayJongo模块,根据文档它提供体面对象的映射。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM