播放要求在Akka代码上隐式应用,即使它已导入

时间:2015-09-13 23:37:40

标签: scala playframework playframework-2.0 akka

使用play 2.4.x.我的代码如下所示:

import play.api.Play.current

val linkedinParse = Akka.system.actorOf(Props[LinkedinParse], name = "linkedinParse") 

Play会产生编译错误:

You do not have an implicit Application in scope. If you want to bring the 
current running Application into context, just add import play.api.Play.current

即使我有导入

0 个答案:

没有答案