mybatis plus 自增长主键如何获取
注意在model对象里面配置以下注解即可在调用save()方法后通过对象get获取
@TableId(type = IdType.AUTO)
BigInteger deptId;
https://www.syntaxspace.com/article/776.html
mybatis plus 自增长主键如何获取
注意在model对象里面配置以下注解即可在调用save()方法后通过对象get获取
@TableId(type = IdType.AUTO)
BigInteger deptId;
https://www.syntaxspace.com/article/776.html
评论