摘要:
我自己的实现: 代码:https://github.com/littlecarzz/spring-data-mongodb 我使用的是spring-data-mongodb包,因为springboot注解和自动化配置,可以让我们少写很多配置文件,方便。 1.首先引入依赖 pom.xml 2.配置mo 阅读全文
posted @ 2019-05-27 22:56
littlecarzz
阅读(253)
评论(0)
推荐(0)
摘要:
参考:https://www.cnblogs.com/leocook/p/zk_1.html 代码:https://github.com/littlecarzz/zookeeper 1. 数据模型 1.1. 只适合存储小数据 Zk维护着一个逻辑上的树形层次结构,树中的节点称为znode,个znode 阅读全文
posted @ 2019-05-27 22:30
littlecarzz
阅读(324)
评论(0)
推荐(0)
摘要:
参考:https://www.cnblogs.com/leocook/p/zk_0.html 代码:https://github.com/littlecarzz/zookeeper 1. 什么是Zookeeper Zookeeper是Hadoop的一个子项目,它是分布式系统中的协调系统,可提供的服务 阅读全文
posted @ 2019-05-27 22:19
littlecarzz
阅读(450)
评论(0)
推荐(0)
摘要:
Mongodb的aggregate应用之前已经说过了。 可以参考day06 Mongoose的aggregate函数应用 阅读全文
posted @ 2019-05-27 21:54
littlecarzz
阅读(1007)
评论(0)
推荐(0)
摘要:
一、Mongoose检验参数 required : 表示这个数据必须传入max: 用于 Number 类型数据, 最大值 min: 用于 Number 类型数据, 最小值 enum:枚举类型, 要求数据必须满足枚举值 enum: ['0', '1', '2'] match:增加的数据必须符合 mat 阅读全文
posted @ 2019-05-27 21:33
littlecarzz
阅读(538)
评论(0)
推荐(0)

浙公网安备 33010602011771号