第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

跨域成功之后,debug已經(jīng)從session得到值了,但是注冊(cè)失敗,信息如下

### Error updating database.? Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

### The error may involve com.miaoshaproject.dao.UserPasswordDOMapper.insertSelective-Inline

### The error occurred while setting parameters

### SQL: insert into user_password

### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1] with root cause


com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1


正在回答

2 回答

UserDOMapper.xml

id="insertSelective"?中添加
keyProperty="id"?useGeneratedKeys="true"
UserServiceImpl中
//實(shí)現(xiàn)model轉(zhuǎn)成do(dataobject)方法
UserDO?userDO=convertFormModel(userModel);
userDOMapper.insertSelective(userDO);
后添加
userModel.setId(userDO.getId());


1 回復(fù) 有任何疑惑可以回復(fù)我~
#1

慕容3596821

棒??!
2021-07-04 回復(fù) 有任何疑惑可以回復(fù)我~
#2

qq_慕尼黑3458450

改了之后還是報(bào)錯(cuò)Invalid bound statement (not found): com.secondkill1project.dao.UserInfoDOMapper.insertSelective]
2021-08-10 回復(fù) 有任何疑惑可以回復(fù)我~

insertByPrimaryKey中加這個(gè)沒:

keyProperty="id"?useGeneratedKeys="true"


0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

dpq592 提問者

謝謝,看到后面發(fā)現(xiàn)了,很感謝
2021-03-07 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

跨域成功之后,debug已經(jīng)從session得到值了,但是注冊(cè)失敗,信息如下

我要回答 關(guān)注問題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)