mybatis怎么给主键自动设置uuid
<insert id="addUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="id">
<selectKey keyProperty="id" resultType="java.lang.String" order="BEFORE">
select replace(uuid(),'-','') from dual
</selectKey>
insert into sys_user ( id,username,password,name,birthday,gender,telephone,email ) values (#{id},#{username},#{password},#{name},#{birthday},#{gender},#{telephone},#{email})
</insert>
`