0
我使用Finagle/Finch和我得到這個錯誤:錯誤Scala中發送使用欺騙/芬奇體數據時
diverging implicit expansion for type argonaut.DecodeJson[A] starting
with method MapDecodeJson in trait DecodeJsons
diverging implicit expansion for type argonaut.DecodeJson[V] starting
with method MapDecodeJson in trait DecodeJsons
not enough arguments for method body: (implicit d:
io.finch.Decode.Aux[A,CT], implicit ct:
scala.reflect.ClassTag[A])io.finch.Endpoint[A]. Unspecified value
parameters d, ct.
對於此代碼:
def sendPost(db: CommDb): Endpoint[String] =
post("posts" :: body.as[String]) { s: String =>
Ok("success")
}
我不知道如何解決這個。
謝謝。刪除一個庫並更新後,對我的模型進行更改後,我將其編譯。 :) –