Play Framework 2.1 - Cannot find an implicit ExecutionContext

前端 未结 3 1568
一个人的身影
一个人的身影 2021-01-31 14:09

I am calling a webservice like this:

WS
  .url(url)
  .get
  .map { response => // error occurs on this line
    response.status match {
      case 200 =>          


        
3条回答
  •  悲&欢浪女
    2021-01-31 14:58

    According to this issue, it is fixed in the documentation. I needed to add the following import:

    import play.api.libs.concurrent.Execution.Implicits._
    

提交回复
热议问题