我正在和Akka做一些实际的例子。到目前为止一切都很好。但是现在我开始寻找Akka持久性,在我读过的所有博客中他们说我需要在application.conf中配置持久性
akka {
persistence {
journal.plugin = "inmemory-journal"
snapshot-store.plugin = "inmemory-snapshot-store"
}
}
我的项目只是一个gradle项目。我不明白如何将此配置文件与我需要使用内存持久性的测试用例粘合在一起。
有人可以指出我如何使用我的示例执行来粘贴配置。
在这里你可以看到代码
https://github.com/politrons/Akka/tree/master/src/main/scala/persistence
当我运行我的对象应用程序时,我收到此错误
Caused by: java.lang.IllegalArgumentException: requirement failed: default journal plugin is not configured, see 'reference.conf'