mybatis用mysql主键自动生成uuid

<selectKey keyProperty="uid" resultType="string" order="BEFORE">
  select replace(uuid(), '-', '') as id from dual
</selectKey>

猜你喜欢

转载自blog.csdn.net/weixin_42323650/article/details/83826113
今日推荐