摘要: mvn clean install -X -D "maven.test.skip=true" 阅读全文
posted @ 2024-07-20 22:11 冷风5997 阅读(15) 评论(0) 推荐(0)
摘要: 添加依赖 <!--消息发送--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId> </dependency> 配置 spring: r 阅读全文
posted @ 2024-07-20 21:45 冷风5997 阅读(41) 评论(0) 推荐(0)
摘要: serviceImpl层 手写的查询方法queryBachRole,page必须作为参数传入,且返回值必须用IPage接收,如果后续想用list可以getRecords() Page<UserVO> page = new Page<>(query.getPageNo(), 2); IPage<Use 阅读全文
posted @ 2024-07-20 15:20 冷风5997 阅读(72) 评论(0) 推荐(0)
摘要: 转载:https://blog.csdn.net/qq_40431100/article/details/109491265 出现这种错误的原因是取不到对应的参数,使用@Param注解 阅读全文
posted @ 2024-07-20 14:29 冷风5997 阅读(19) 评论(0) 推荐(0)
摘要: bug01: 解决方法1:在其他模块调用找不到bean时,在api模块 解决方法2: org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ com.hmall.api.client.UserClient\ 4.1.1.引入依 阅读全文
posted @ 2024-07-19 17:35 冷风5997 阅读(37) 评论(0) 推荐(0)
摘要: //1.1记录到mysql LambdaUpdateWrapper<RiskStatus> wrapper = new LambdaUpdateWrapper<>(); wrapper.setSql("login_failure_times=login_failure_times+1"); wrap 阅读全文
posted @ 2024-07-19 16:32 冷风5997 阅读(1374) 评论(0) 推荐(0)
摘要: redis的5种数据类型: String字符串 Hash 哈希 List 列表 Set 集合 Zset 有序集合 key的层级结构: String结构: set key value Hash结构: 举例: HSET key field value hset heima:user:1 name zxr 阅读全文
posted @ 2024-07-18 17:14 冷风5997 阅读(19) 评论(0) 推荐(0)
摘要: @Override public void deleteQuestionById(Long id) { InteractionQuestion question = this.getOne(new LambdaQueryWrapper<InteractionQuestion>().eq(id != 阅读全文
posted @ 2024-07-16 20:35 冷风5997 阅读(24) 评论(0) 推荐(0)
摘要: 在lambda去的select单个指定字段 lambdaquerywrapper queryWrapper.select(InteractionQuestion.class, new Predicate<TableFieldInfo>() { @Override public boolean tes 阅读全文
posted @ 2024-07-16 11:29 冷风5997 阅读(39) 评论(0) 推荐(0)
摘要: 绑定队列 编写监听器 @RabbitListener(bindings = @QueueBinding( value = @Queue(MqConstants.Queue.LEARNING_RECORD_QUEUE), exchange = @Exchange(value = MqConstants 阅读全文
posted @ 2024-07-15 14:17 冷风5997 阅读(12) 评论(0) 推荐(0)