SpringBoot整合MyBatis獲得插入數據後獲取主鍵,返回值總是1

xml裏的寫法  <insert id="insertLogin" parameterType="com.xyt.p2p.pojo.LoginInfo" keyColumn="userId" useGeneratedKeys="true" keyProperty="userId"> INSERT INTO LoginInfo (username,password,sta
相關文章
相關標籤/搜索