課程
/后端開發(fā)
/Java
/SpringBoot+MyBatis搭建迷你小程序
Attribute useGeneratedKeys is not allowed here
2021-06-02
源自:SpringBoot+MyBatis搭建迷你小程序 3-5
正在回答
將外部的<select>改為<insert>即可,<select>中是沒有這幾個(gè)值的。
例:
<select?id="addUser"> ????insert?into?mybatis.user?(id,name,password)?values?(#{id},#{name},#{password}) </select>
改為
<insert?id="addUser"?useGeneratedKeys="true"?keyProperty="id"> ????insert?into?mybatis.user?(id,name,password)?values?(#{id},#{name},#{password}) </insert>
舉報(bào)
SpringBoot+MyBatis搭建小程序后臺(tái)
1 回答請(qǐng)問這是什么原因
3 回答create test 里面不顯示方法是什么原因呢?
1 回答老師,問個(gè)問題,為什么我的yml配置文件jdbc的driver沒有提示
1 回答這個(gè)是什么原因
2 回答請(qǐng)問下老師問什么把a(bǔ)utowired提示變?yōu)閣arn后,還是 創(chuàng)建不了areaDao bean
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2021-07-07
將外部的<select>改為<insert>即可,<select>中是沒有這幾個(gè)值的。
例:
改為