将SORM与Play Framework 2.3.8结合使用 [英] Using SORM with Play Framework 2.3.8

查看:92
本文介绍了将SORM与Play Framework 2.3.8结合使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在遍历 Play框架的视频介绍,但是我一直坚持用SORM,因为导入失败.

I am going through the Video introduction to Play Framework and, but I am stuck creating a DB object with SORM because the import fails.

我试图在plugins.sbt中添加依赖项,然后重新启动了激活器,但是似乎激活器找不到依赖项,并且我得到了,我得到了unresolved error:

I tried to add the dependencies in plugins.sbt, and relaunched activator, but it seems that activator cannot find the dependencies and I get and I get an unresolved error:

addSbtPlugin("org.sorm-framework" % "sorm" % "0.3.14")
addSbtPlugin("com.h2database" % "h2" % "1.4.181")

我从 Yvis存储库中获取了版本. .我也尝试过其他版本,但运气不好.

I got the versions from the Yvis repository. I also tried other versions with no better luck.

推荐答案

应添加为

libraryDependencies += "org.sorm-framework" % "sorm" % "0.3.16" 

build.sbt中,

但不是

addSbtPlugin("org.sorm-framework" % "sorm" % "0.3.14")

project/plugins.sbt

这篇关于将SORM与Play Framework 2.3.8结合使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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