一千年以后14
2019-01-11 14:18
### 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]
解决了,原来user_password表的ID忘记设置自增长了,尴尬
SpringBoot构建电商基础秒杀项目
49065 学习 · 954 问题
相似问题