上一页 1 2 3 4 5 6 7 ··· 25 下一页
摘要: 1、描述虚拟机搭建mongo副本集虚拟机的设定的hostname为: centosc。虚拟机IP为 192.168.25.129 搭建三个副本集端口分别为,28017、28018、28019 ,运行mongo副本集报错,报错信息如下: 2024-05-20 10:22:39:235[main]INF 阅读全文
posted @ 2024-05-20 11:16 东北大亨 阅读(37) 评论(0) 推荐(0)
摘要: 客户端使用 FeignClient 调用服务端服务时,报错:Request method ‘POST‘ not supported 修改错误前调用方式: FeignClient 接口服务 @FeignClient(contextId = "remotePayFormService", value = 阅读全文
posted @ 2024-04-24 13:49 东北大亨 阅读(867) 评论(0) 推荐(0)
摘要: 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 东北大亨 阅读(205) 评论(0) 推荐(0)
摘要: 第一步:打开com(终端) 第二步:输入:netsh wlan show profiles ,然后回车即可显示连接的wifi列表 第三步:继续输入:netsh wlan show profiles name ="NorthEastTycoon-5G" key =clear 回车,出现的关键内容即为连 阅读全文
posted @ 2024-03-25 13:18 东北大亨 阅读(155) 评论(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 东北大亨 阅读(89) 评论(0) 推荐(0)
摘要: 一、MongoTemplate 中 Aggregation 应用 使用Aggregation聚合查询 支持返回固定字段 支持分组计算(count)总数、(sum)求和、(avg)平均值、(max)最大值、(min)最小值等 public Page<Student> getListWithAggreg 阅读全文
posted @ 2024-03-19 09:34 东北大亨 阅读(45) 评论(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 东北大亨 阅读(48) 评论(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 东北大亨 阅读(22) 评论(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 东北大亨 阅读(46) 评论(0) 推荐(0)
摘要: idea 菜单栏显隐控制 1、idea中双击shift 输入view,出现以下弹出框 2、点击第一个view 进入以下界面 3、选择自己需要选择项即可 阅读全文
posted @ 2024-03-10 14:17 东北大亨 阅读(220) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 25 下一页