为了账号安全,请及时绑定邮箱和手机立即绑定

必须要设置ID是怎么回事

### Error updating database.  Cause: java.sql.SQLException: Field 'id' doesn't have a default value
### The error may involve com.miaoshaproject.dao.UserPasswordDOMapper.insertSelective-Inline
### The error occurred while setting parameters
### SQL: insert into user_password      ( encrpt_password,                       user_id )       values ( ?,                       ? )
### Cause: java.sql.SQLException: Field 'id' doesn't have a default value
; ]; Field 'id' doesn't have a default value; nested exception is java.sql.SQLException: Field 'id' doesn't have a default value]

正在回答

1 回答

解决了,原来user_password表的ID忘记设置自增长了,尴尬

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

必须要设置ID是怎么回事

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信