Mybatis使用Map当做参数获取插入数据成功后返回的自增id

1、mapper文件

useGeneratedKeys="true" keyProperty="id"

 2、Dao接口

 3、Service

猜你喜欢

转载自www.cnblogs.com/guduershi/p/12124461.html