我正在尝试将以下软件包导入build.sbt
中,如下所示:
import org.mongodb.scala.bson.codecs.DEFAULT_CODEC_REGISTRY
import org.mongodb.scala.bson.codecs.Macros._
并且编译器根本无法识别该软件包。它显示以下错误:
[error] /home/developer/scala/trymongo/src/main/scala/Main.scala:7:12: object mongodb is not a member of package org
[error] import org.mongodb.scala.bson.codecs.DEFAULT_CODEC_REGISTRY
[error] ^
[error] /home/developer/scala/trymongo/src/main/scala/Main.scala:8:12: object mongodb is not a member of package org
[error] import org.mongodb.scala.bson.codecs.Macros._
我在做什么错?该项目可以在这里https://gitlab.com/playscala/trymongo
中找到