[英]package com.mongodb.client does not exist
I am getting error in eclipse console while building application 构建应用程序时,Eclipse控制台出现错误
package com.mongodb.client does not exist.
包com.mongodb.client不存在。
I am importing two packages : 我要导入两个软件包:
import com.mongodb.client.AggregateIterable;
import org.bson.Document;
Download the jar files of the packages and add it to the build path of your project. 下载软件包的jar文件,并将其添加到项目的构建路径。
If you are using maven, add the dependency in pom.xml 如果使用的是maven,请在pom.xml中添加依赖项
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.