会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
guardian0769
博客园
首页
新随笔
联系
订阅
管理
2023年10月16日
年轻人的第一个车轱辘——比较两个数据库中表结构的不同并导出为Excel文件
摘要: package com.example.demo; import lombok.Data; import org.apache.commons.collections4.ListUtils; import org.apache.poi.ss.usermodel.*; import org.apach
阅读全文
posted @ 2023-10-16 14:18 Guardian0769
阅读(14)
评论(0)
推荐(0)
2023年5月23日
Git拉取代码报错:Can't Update No tracked branch configured for branch dev or the branch doesn't exist.To make your branch track a remote branch call
摘要: 错误: 解决方法: 第一步: git pull origin(远程仓库名称) develop(远程分支名称) --allow-unrelated-histories 第二步: git branch --set-upstream-to origin(远程仓库名称)/develop(远程分支名称) de
阅读全文
posted @ 2023-05-23 10:00 Guardian0769
阅读(588)
评论(0)
推荐(0)
2023年4月6日
异步任务的实现
摘要: 使用CompletableFuture CompletableFuture使用详解 - 简书 (jianshu.com)
阅读全文
posted @ 2023-04-06 16:45 Guardian0769
阅读(7)
评论(0)
推荐(0)
2023年4月4日
java后台使用注解校验参数
摘要: java后台使用注解校验参数_老猫*的博客-CSDN博客
阅读全文
posted @ 2023-04-04 14:42 Guardian0769
阅读(3)
评论(0)
推荐(0)
在持久层使用@Repository代替@Mapper注入对象
摘要: 在持久层使用@Repository代替@Mapper注入对象时需要注意要在启动类上加上@MapperScan("持久层所在包"),否则spring会扫描不到持久层的类
阅读全文
posted @ 2023-04-04 11:42 Guardian0769
阅读(14)
评论(0)
推荐(0)
2023年3月29日
服务无法注册到sentinel
摘要: 问题: 配置sentinel后启动服务访问服务无法被sentinel发现 解决办法: 开启sentinel的饥饿加载 spring: cloud: sentinel: eager: true //开启饥饿加载 transport: dashboard: localhost:8090
阅读全文
posted @ 2023-03-29 20:06 Guardian0769
阅读(354)
评论(0)
推荐(0)
2023年3月28日
如何使用雪花算法生成id
摘要: MyBatisPlus中提供了一个工具类IdWork,使用IdWork.getId()可直接得到通过雪花算法生成id
阅读全文
posted @ 2023-03-28 15:10 Guardian0769
阅读(97)
评论(0)
推荐(0)
2023年3月25日
mysql公共字段填充
摘要: 在实体类的属性上打@TableField注解,并在写明何时自动填充。 按照框架要求编写元数据对象处理器,在此类中统一为公共字段赋值,此类需要实现MetaObjectHandler接口 1 /** 2 * 自定义元数据对象处理器 3 */ 4 @Component 5 @Slf4j 6 public
阅读全文
posted @ 2023-03-25 19:22 Guardian0769
阅读(30)
评论(0)
推荐(0)
2023年3月15日
SpringAMQP声明队列时报错:Channel shutdown: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED...
摘要: 完整错误信息: Channel shutdown: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'x-
阅读全文
posted @ 2023-03-15 12:17 Guardian0769
阅读(3466)
评论(0)
推荐(0)
2023年3月7日
Docker启动RabbitMQ访问15672连接超时解决方法
摘要: docker成功启动rabbitmq后访问15672端口报连接超时 原因:rabbitmq默认web界面管理插件是关闭的,需要通过命令开启 解决办法: 1、查看rabbit的容器id:docker ps 2、进入容器:docker exec -it 容器id /bin/bash 3、输入开启命令:r
阅读全文
posted @ 2023-03-07 15:33 Guardian0769
阅读(656)
评论(0)
推荐(0)
公告