我想知道..你在哪裏把application.conf
文件配置成一個文件中的演員?我正在嘗試做什麼here但是SBT並沒有在文件中找到答案 - 我的印象是SBT會找到application.conf
並自動將其添加到我的-classpath
。我現在有application.conf
在/project/application.conf
scala SBT的application.conf Akka Actors
我得到的錯誤是:
[ERROR] [04/11/2012 16:08:13.174] [HittingTimeSystem-akka.actor.default-dispatcher-2] [akka://HittingTimeSystem/user/master] error while creating actor
akka.config.ConfigurationException:router Actor[akka://HittingTimeSystem/user/master/workerRouter] needs external configuration from file (e.g. application.conf)
謝謝! -kstruct
工作!我在我的'application.conf'文件中遇到了一個問題,我在做/ router /而不是/ master/router /,因爲我的路由器是另一個演員「master」的「孩子」 – adelbertc 2012-04-12 02:39:49