spring boot mybatis 获取insert 返回id
@Insert("INSERT INTO hq_admin(username,truename,password,phone,email) VALUES(#{username},#{truename}, #{password}, #{phone}, #{email})")@SelectKey(statement="select LAST_INSERT_ID()", keyProperty="id...
原创
2018-03-27 16:19:48 ·
11514 阅读 ·
1 评论