Advertisement

使用Java-Maven进行MongoDB的增删改查操作

阅读量:

文章结构概述

    • 1. 环境搭建
      • 2. 模块验证
        • 2.1 数据检索
        • 2.2 数据添加
        • 2.3 数据修改
        • 2.4 数据移除

环境配置与系统搭建

pom.xml 依赖配置

复制代码
    <dependencies>
        <!-- mongodb驱动 -->
        <dependency>
            <groupId>org.mongodb</groupId>
            <artifactId>mongodb-driver</artifactId>
            <version>3.6.3</version>
        </dependency>
        <!-- 单元测试 -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.10</version>
            <scope>test</scope>
        </dependency>
    </dependencies

全部评论 (0)

还没有任何评论哟~