Когда я следую гладкому официальному учебнику, я получаю ошибки:
Неверное количество параметров типа. Ожидаемый: 0, фактический: 1
Вот мой код:
class Suppliers(tag: Tag) extends Table[(Int, String, String, String, String, String)](tag, "SUPPLIERS") {
def id = column[Int]("SUP_ID", O.PrimaryKey) // This is the primary key column
def name = column[String]("SUP_NAME")
def street = column[String]("STREET")
def city = column[String]("CITY")
def state = column[String]("STATE")
def zip = column[String]("ZIP")
// Every table needs a * projection with the same type as the table's type parameter
def * = (id, name, street, city, state, zip)
}
и мой build.sbt :
scalaVersion := "2.12.10"
val akkaHttpV = "10.1.1"
val akkaV = "2.6.1"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % akkaV,
"com.typesafe.akka" %% "akka-stream" % akkaV,
"com.typesafe.akka" %% "akka-http" % akkaHttpV,
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpV,
"com.typesafe.slick" %% "slick" % "3.3.0",
"com.typesafe.slick" %% "slick-codegen" % "3.3.0",
"org.slf4j" % "slf4j-nop" % "1.6.4",
"com.typesafe.slick" %% "slick-hikaricp" % "3.3.0",
"org.postgresql" % "postgresql" % "9.4-1206-jdbc42",
)
Я не знаю, как это исправить, поэтому помогите мне, пожалуйста!