【问题标题】:What version of Salat/Casbah should I use to connect to Mongo 3.x server?我应该使用什么版本的 Salat/Casbah 连接到 Mongo 3.x 服务器?
【发布时间】:2015-10-14 18:25:31
【问题描述】:

我正在使用https://github.com/salat/salat。但似乎 salat 正在使用 Casbah 2.7。我们的 mongo 服务器是 3.0.6。但是我们无法连接并且总是出现这个错误。

Configuration error: Configuration error[Access denied to MongoDB database: [mg_prod] with user: [mydbuser]]
        at play.api.Configuration$.play$api$Configuration$$configError(Configuration.scala:94)
        at play.api.Configuration.reportError(Configuration.scala:743)
        at se.radley.plugin.salat.SalatPlugin$MongoSource.connection(SalatPlugin.scala:36)
        at se.radley.plugin.salat.SalatPlugin$$anonfun$onStart$1.apply(SalatPlugin.scala:136)
        at se.radley.plugin.salat.SalatPlugin$$anonfun$onStart$1.apply(SalatPlugin.scala:131)

你能告诉我应该如何解决这个问题吗?

【问题讨论】:

    标签: mongodb casbah salat


    【解决方案1】:

    作为一种解决方法,您可以添加

    "org.mongodb" %% "casbah" % "2.8.2"
    

    到您的 build.sbt 文件,错误应该消失了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-05-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-05-27
      • 2021-05-11
      • 1970-01-01
      • 2016-10-28
      相关资源
      最近更新 更多