[英]Play Framework 2.3 MongoDB
我正在尝试使用scala中的play framework 2.3开发一个小型web应用程序。 对于此应用程序,我需要访问MongoDB实例。 现在我可以配置我的构建来下载morphia的依赖项。 这是morphia的依赖项:
libraryDependencies += "com.google.code.maven-play-plugin.org.playframework.modules.morphia" % "play-morphia" % "1.2.12"
在编译期间,播放编译器抱怨缺少类play.db.Model
。 确切的错误消息是这些:
Error:Play 2 Compiler: Class play.db.Model not found - continuing with a stub.
Error:Play 2 Compiler: ^
Warning:Play 2 Compiler: Class play.db.Model not found - continuing with a stub.
Warning:Play 2 Compiler: Class play.data.binding.ParamNode not found - continuing with a stub.
Warning:Play 2 Compiler: Class play.mvc.Scope not found - continuing with a stub.
Warning:Play 2 Compiler: 9 warnings found
我错过了一些依赖或配置吗?
提前致谢!
在build.sbt中尝试使用它
“org.mongodb.morphia”%“morphia”%“0.109”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.