我正在使用Finagle/Finch并收到此错误:
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")
}
我不知道如何解决这个问题。