2021年1月28日

Mybaits Plus 使用saveorUpdateBatch 的注意事项,实现自增id且可手动输入id的方式

摘要: 1、使用Mybaits Plus 主键策略 IdType = auto 2、预期 主键策略: 指定数据的id,数据库中不存在按照指定id插入,如果没有给id,则使用数据库自增 3、结果 没有使用已经有的id,也没有使用数据库自增,生成了长度为19为的long类型id 4、分析 源码显示,如果id为空 阅读全文

posted @ 2021-01-28 17:49 滚动的蛋 阅读(30155) 评论(0) 推荐(0) 编辑

指定Java 实体字段序列化类型

摘要: 使用注解: @JsonSerialize(using = ToStringSerializer.class) @Data @ApiModel("跟进实体") public class FollowVo { @ApiModelProperty(value = "跟进id") @JsonSerializ 阅读全文

posted @ 2021-01-28 17:25 滚动的蛋 阅读(398) 评论(0) 推荐(0) 编辑

导航