mongodb database with Java play 2.0

2019-03-16 10:34发布

问题:

Is there a tutorial how I can use mongodb database with Java play 2.0?

On the official website (playframework.org) there seems to be only the NoSql example.

回答1:

check this demo on github. https://github.com/czihong/playMongoDemo

I use morphia to connect play 2.o and mongodb.



回答2:

Check mongodb database with scala play 2.0 tutorial and this discussion. Unfortunately, there is no official tutorial at the moment.



回答3:

check this demo on github https://github.com/leodagdag/play2-morphia-plugin. This is not an official tutorial.this is a leodagdag.play2morphia.Model.