我有一个lagom项目,我正在使用外部cassandra,所以实际问题是当我在本地使用sandbox运行我的项目时,它无法检测到我本地单独运行的cassandra。
错误:无法找到Cassandra联系点,原因是:没有联系 [cas_native]
的分数
我的build.sbt包含
lagomCassandraEnabled in ThisBuild := false
lagomUnmanagedServices in ThisBuild := Map("cas_native" -> "http://localhost:9042")
答案 0 :(得分:0)
上述build.sbt
配置仅适用于在开发模式下运行。
在ConductR中运行时,您需要按照http://conductr.lightbend.com/docs/2.1.x/ExternalServices
上的说明在其服务定位器中配置cas_native