我想知道..您将配置角色的application.conf文件放在哪里?我正在尝试执行here,但是SBT并未在文件中读取-我的印象是SBT将找到application.conf并将其自动添加到我的-classpath中。我目前在application.conf中有/project/application.conf
我得到的错误是:

[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

最佳答案

如果将它放在src/main/resources/application.conf中,它应该最终在类路径上

关于scala - 适用于Scala SBT Akka Actor的application.conf,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/10115236/

10-16 05:47