摘要: Gitlab在 新用户登录或者管理员重新密码后重新登录时会偶发重定向循环在users/sign_up/welcome和/-/profile/password/new两者之间反复横跳。导致无法正常操作。 出现原因懒得追究,直接说解决方案。 思路 出现两个页面反复横跳 推测两个都需要操作一下。welco 阅读全文
posted @ 2022-04-09 16:13 baissy 阅读(2738) 评论(4) 推荐(1) 编辑
摘要: 它是什么? MapStruct 是一个代码生成器,它基于约定优于配置方法极大地简化了 Java bean 类型之间映射的实现。 生成的映射代码使用简单的方法调用,因此速度快、类型安全且易于理解。 为什么使用? 多层应用程序通常需要在不同的对象模型(例如实体和 DTO)之间进行映射。编写这样的映射代码 阅读全文
posted @ 2021-12-31 11:55 baissy 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 方法一 重载clone()方法 Object父类有个clone()的拷贝方法,不过它是protected类型的,我们需要重写它并修改为public类型。除此之外,子类还需要实现Cloneable接口来告诉JVM这个类是可以拷贝的。 重写代码 让我们修改一下User类,Address类,实现Clone 阅读全文
posted @ 2021-12-31 11:40 baissy 阅读(4716) 评论(0) 推荐(0) 编辑
摘要: Background Image Plus idea背景图 CodeGlance 右侧代码地图 Translation 翻译 Rainbow Brackets 彩虹色括号 Grep Console: 日志着色控制台显示 Statistic 代码统计 Markdown Navigator Markdo 阅读全文
posted @ 2021-11-30 20:11 baissy 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 普通索引INDEX ALTER table 表名 ADD INDEX 索引名(列名) 唯一索引 UNIQUE ALTER TABLE 表名 ADD UNIQUE (列名) 组合唯一索引 ALTER TABLE 表名 ADD UNIQUE (列名1,列名2); 删除索引 DROP INDEX 索引名 阅读全文
posted @ 2021-11-30 20:10 baissy 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 1, 查看防火墙状态: firewall-cmd --state systemctl status firewalld.service 2, 开启防火墙: systemctl start firewalld.service 3,设置开机自启: systemctl enable firewalld.s 阅读全文
posted @ 2021-11-30 20:09 baissy 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 一、返回参数 1、Long转String @JsonSerialize(using = ToStringSerializer.class) 2、时间格式转换 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8" ) 二、接收参数 1 阅读全文
posted @ 2021-11-30 20:06 baissy 阅读(672) 评论(0) 推荐(0) 编辑
摘要: 判断 <if test="dto.value != null"></if> <if test="dto.value == null"></if> 枚举值比较 <if test="dto.value == @com.baiawnx.common.enums.TypeEnum@one"></if> if 阅读全文
posted @ 2021-11-30 20:04 baissy 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 一、基本使用 1. 跟据某个属性分组OfficeId Map<String, List<IncomeSumPojo>> collect = list.stream().collect(Collectors.groupingBy(IncomeSumPojo::getOfficeId)); 2. 根据某 阅读全文
posted @ 2021-11-30 20:02 baissy 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 安装Docker 1、安装依赖包 sudo yum install -y yum-utils device-mapper-persistent-data lvm2 2、设置yum阿里镜像源 sudo yum-config-manager --add-repo https://mirrors.aliy 阅读全文
posted @ 2020-06-01 15:31 baissy 阅读(296) 评论(0) 推荐(0) 编辑