我正在使用Play 2.5.8,下面给出了在模型中使用的Anorm头文件,但它抛出错误,我该如何解决它。我已经尝试过此链接,但没有使用How to Resolve 'not found: object anorm' for play 2.4.3
Scala版本
version := "1.0-SNAPSHOT"
scalaVersion := "2.11.7"
依赖关系
libraryDependencies ++= Seq(
jdbc,
cache,
ws,
"org.scalatestplus.play" %% "scalatestplus-play" % "1.5.1" % Test,
"mysql" % "mysql-connector-java" % "5.1.38",
"com.typesafe.play" %% "anorm" % "2.5.1",
evolutions
)
编辑
Eclipse Luna
OS
Ubuntu 16.04 / Windows 7
Build.sbt
// The Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.5.8")
// web plugins
addSbtPlugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.1.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-jshint" % "1.0.4")
addSbtPlugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.8")
addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.1.1")
addSbtPlugin("com.typesafe.sbt" % "sbt-mocha" % "1.1.0")
addSbtPlugin("org.irundaia.sbt" % "sbt-sassify" % "1.4.6")
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
答案 0 :(得分:0)