使用PlayFramework 2.2.1设置ReactiveMongo
我对使用PlayFramework很新颖。 我注册了MongoLab并获得了一个Sandboxed版本的MongoDB。 现在我发现了ReactiveMongo插件,但它仅适用于Play 2.1。 有没有关于用2.3设置MongoDB的教程? 我编辑build.sbt文件看起来像这样
name := "restsample"
version := "1.0-SNAPSHOT"
libraryDependencies ++= Seq(
"org.reactivemongo" %% "play2-reactivemongo" % "0.9",
javaJdbc,
javaEbean,
cache
)
play.Project.playJavaSettings
当我运行它时,我得到了一个
info] Updating {file:/Users/mateen.sajjad/play-learn/restsample/}restsample...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[error] Modules were resolved with conflicting cross-version suffixes in {file:/Users/mateen.sajjad/play-learn/restsample/}restsample:
[error] org.scala-stm:scala-stm _2.10.0, _2.10
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) Conflicting cross-version suffixes in: org.scala-stm:scala-stm
[error] Total time: 6 s, completed Nov 7, 2013 1:41:33 PM
所以我卡住了? 任何人都可以帮助我吗?
我认为没有发布与play 2.2兼容的play mongo插件,但0.10-SNAPSHOT应该可以工作。
以下是关于mongo google群体的讨论:https://groups.google.com/d/topic/reactivemongo/R9TiVINofrk/discussion
链接地址: http://www.djcxy.com/p/17017.html