MongoDB
闲走天涯
这个作者很懒,什么都没留下…
展开
-
springboot整合MongoDB测试demo 代码
springboot MongoDB测试demo 代码 demo分为4个类,分别为: 学生实体类-student、课程实体类-course、springboot持久层-mongoDao、springboot控制层-mongoController 1、学生实体类-student 注解进行声明对应的MongoDB 数据设置 /** * 描述: * 实体类-学生 student * @author 闲走天涯 * @create 2021/7/23 13:53 */ @Data @Document(col原创 2021-07-24 14:02:22 · 491 阅读 · 0 评论 -
java MongoDB 测试demo
java MongoDB 测试demo 工具包 /** * 描述: * MongoDB 测试demo 工具包 * @author 闲走天涯 * @create 2021/7/22 15:09 */ public class MongoDBJDBC { private static String host="localhost"; private static Integer port = 27017; /** * 连接 数据库 * @param dbN原创 2021-07-23 10:23:04 · 303 阅读 · 0 评论 -
MongoDB 常用命令行整理
命令 runoob为所测试的集合 更新 db.runoob.updateOne({“age”:20},{KaTeX parse error: Expected 'EOF', got '}' at position 17: …et:{"age":"20"}}̲) 新增 db.runoob.…regex:/cmw/}}) // age大于20 db.runoob.find({“age”:{KaTeX parse error: Expected 'EOF', got '}' at position 6: gt:2原创 2021-07-24 10:28:07 · 128 阅读 · 1 评论