这就是 BasicDriver.class 定义的样子
package scala.slick.profile
trait BasicDriver extends scala.AnyRef with scala.slick.profile.BasicProfile {
val profile : scala.slick.profile.BasicProfile = { /* compiled code */ }
override def toString() : java.lang.String = { /* compiled code */ }
final val driverConfig : com.typesafe.config.Config = { /* compiled code */ }
protected[this] def loadDriverConfig : com.typesafe.config.Config = { /* compiled code */ }
}
错误 :
Error:scalac: bad symbolic reference. A signature in BasicDriver.class refers to term typesafe in package com which is not available. It may be completely missing from the current classpath, or the version on the classpath might be incompatible with the version used when compiling BasicDriver.class
说类路径中缺少 com.typesafe for (com.typesafe.config.Config) 。
我认为问题出在添加的依赖项上,请尝试主快照:
"com.typesafe.slick" % "slick_2.10" % "3.0.0-M1"