今天敲代码的时候,遇到了一个bug:
### 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] with root cause java.sql.SQLException: Field 'id' doesn't have a default value
如何解决:
表中添加自增:添加成功就好了