akka http post 请求出错

分享 未结
0 0 0 21
hsh0756232 2018-10-12发布
收藏 点赞
case class AtText(atMobiles:Set[String]=Set(),isAtAll:String="false")
object RobotProtocol extends SprayJsonSupport with DefaultJsonProtocol {
  implicit val AtTextFormat: RootJsonFormat[AtText] = jsonFormat2(AtText)
}

(path("test") & post){
  entity(as[AtText]){  ==》出错  could not find implicit value for parameter um: akka.http.scaladsl.unmarshalling.FromRequestUnmarshaller[AtText]

    data=>{
      complete{
        ""
      }
    }
  }
}


回帖
  • 消灭零回复