mybatis插入數據返回自增主鍵(last_insert_id()),返回非自增主鍵(使用uuid())

自增主鍵返回java 首先在personMapper.xml中添加用戶<!-- 添加用戶 -->  <insert id="insertUser" parameterType="com.it.fan.Person" >   <!-- keyproperty將查詢到的主鍵值設置到parameterType相對應的哪一個屬性          order是SELECT last_insert_id()
相關文章
相關標籤/搜索