安装play框架mongodb morphia模块 [英] Installing play framework mongodb morphia module

查看:142
本文介绍了安装play框架mongodb morphia模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用具有mongodb作为后端的播放框架进行应用程序开发,
我安装了mongodb& playframework在我的ubuntu以及windows上成功运行,
但是如果我想使用mongodb我需要使用morphia模块的play框架,我已经下载了morphia模块并试图安装,但它给了我这样的错误,

I am working on application development using play framework having mongodb as backend, i have installed mongodb & playframework successfully on my ubuntu as well as on windows, but if i want to work with mongodb i need morphia module of play framework, i have downloaded morphia module and tries to install, but it gives me an error like this ,

root@ubuntu:~/apps/tmp1# play install morphia
[info] Loading project definition from /root/apps/tmp1/project
[info] Set current project to tmp1 (in build file:/root/apps/tmp1/)
[error] Not a valid command: install (similar: initialize, inspect, shell)
[error] Not a valid project ID: install
[error] Not a valid configuration: install (similar: optional)
[error] Not a valid key: install (similar: initialize, dist, stage)
[error] install
[error]        ^
root@ubuntu:~/apps/tmp1# 

我甚至试图更改dependencies.yml文件但是,我仍然无法使用它...

i have even tried to change the dependencies.yml file but, still i am unable to work with it...

推荐答案

看起来你正在使用播放2.看看morphia的文档,它明确指出:

It looks like you are using play 2. Look at the documentation of morphia, it clearly states:


此模块仅适用于Play 1.x系列。

This module is for the Play 1.x series only.

您可以使用 java 驱动程序直接。

Instead of using morphia, you can use the java driver directly.

编辑:
那里是一个用于播放2的morphia插件这里

这篇关于安装play框架mongodb morphia模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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