03 2024 档案

摘要:1、mongo集群存入实体类数据报错 : Cannot autogenerate id of type java.lang.Object for entity of type com.tycoon.frame.entity.Transaction! 2、通过排查实体类 Transaction 的 定 阅读全文
posted @ 2024-03-29 11:52 东北大亨 阅读(145) 评论(0) 推荐(0) 编辑
摘要:第一步:打开com(终端) 第二步:输入:netsh wlan show profiles ,然后回车即可显示连接的wifi列表 第三步:继续输入:netsh wlan show profiles name ="NorthEastTycoon-5G" key =clear 回车,出现的关键内容即为连 阅读全文
posted @ 2024-03-25 13:18 东北大亨 阅读(120) 评论(0) 推荐(0) 编辑
摘要:1、描述:mongo 单机使用 GridFSBucket 2、pox中添加jar <dependency> <groupId>org.mongodb</groupId> <artifactId>mongo-java-driver</artifactId> <version>3.12.9</versi 阅读全文
posted @ 2024-03-20 12:17 东北大亨 阅读(68) 评论(0) 推荐(0) 编辑
摘要:一、MongoTemplate 中 Aggregation 应用 使用Aggregation聚合查询 支持返回固定字段 支持分组计算(count)总数、(sum)求和、(avg)平均值、(max)最大值、(min)最小值等 public Page<Student> getListWithAggreg 阅读全文
posted @ 2024-03-19 09:34 东北大亨 阅读(20) 评论(0) 推荐(0) 编辑
摘要:在mongo中 aggregation(聚合应用) 1、插入测试数据 db.tycoon.insertMany( [ {item:"paper",tycoon:25,size:{h:14, w:21,cm:"and" },status:"A"}, {item:"notebook",tycoon:50 阅读全文
posted @ 2024-03-19 08:36 东北大亨 阅读(31) 评论(0) 推荐(0) 编辑
摘要:1、find mongoTemplate.find(Query query, Class<T> entityClass ) return value : List<T> example: List<users> users = mongoTemplate.find(new Query(Criteri 阅读全文
posted @ 2024-03-15 18:03 东北大亨 阅读(7) 评论(0) 推荐(0) 编辑
摘要:1、create a collection the name is users(the users collection contains field :createDate、name、age、grade) example: db.users.insertMany([{"createDate":"2 阅读全文
posted @ 2024-03-15 17:46 东北大亨 阅读(32) 评论(0) 推荐(0) 编辑
摘要:idea 菜单栏显隐控制 1、idea中双击shift 输入view,出现以下弹出框 2、点击第一个view 进入以下界面 3、选择自己需要选择项即可 阅读全文
posted @ 2024-03-10 14:17 东北大亨 阅读(157) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示