mybits自增返回主鍵問題

獲取自增ID解決辦法: 方法:在mapper中指定keyProperty屬性,示例以下:  數據庫 <insert id="insertAndGetId" useGeneratedKeys="true" keyProperty="userId" parameterType="com.chenzhou.mybatis.User"> insert into user(userName,pa
相關文章
相關標籤/搜索