mybatis plus 使用baseMapper.insert返回自增主键id
@TableName("tb_xxx")public class TbXxx implements Serializable { private static final long serialVersionUID = 1L; //数据库id字段为:AUTO_INCREMENT @TableId(value = "id", type = IdType.AUTO) private Integer id;}@Servicepublic class TbXxxServ
原创
2020-08-13 16:32:55 ·
19557 阅读 ·
3 评论