SELECT LAST_INSERT_ID()
insert into user(username,birthday,sex,address) value(#{username},#{birthday},#{sex},#{address})
Mybatis获取mysql非自增主键的获取
User.xml
SELECT uuid()
insert into user(id,username,birthday,sex,address) value(#{id}.#{username},#{birthday},#{sex},#{address})