# simple-mongodb-spring-boot **Repository Path**: dopalin/simple-mongodb-spring-boot ## Basic Information - **Project Name**: simple-mongodb-spring-boot - **Description**: mongoDB - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-15 - **Last Updated**: 2020-12-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Spring-boot-mongoDB (二次梳理代码) #### 原作者: https://gitee.com/shenzhanwang/Spring-boot-mongodb  随着Nosql分布式数据库的不断出现,各种非关系型数据库的重要性日益涌现。本项目基于Spring-data的API,实现一个Spring boot连接文档数据库mongoDB,并对数据进行管理的基本功能,包含的内容如下: 1.包含对文档的基本增删改查(CRUD)的功能,基于Spring-data的MongoRepository扩展实现,update和insert操作本质上使用的同一个DAO接口,区别是update操作必须提供主键id,insert操作不提供id字段; 2.包含数据排序、分页的功能; 3.包含按条件进行数据筛选的功能; 4.前端分页插件使用Bootgrid,前端框架使用Bootstrap; 5.使用时,先开启mongoDB; 6.页面访问入口http://localhost:8081/mongodb    本项目的实例文档模式如下: ``` { "_id" : ObjectId("58369d57eab6bfd4371a5d37"), "_class" : "po.Picture", "filename" : "activiti教程", "path" : "f盘", "size" : NumberLong(9765) } ```