1. 下载jar包
Central Repository: org/mongodb/mongo-java-driver/3.4.3 (maven.org)
2. idea新建项目
file->new->project->java->next->√ create ...->next->...->finish
3. 导包
右键项目->open in -> explorer
选择 自己建的项目,新建一个libs文件夹,把下载的jar包放进去
4. 添加进library
右键libs-> add as library -> ...