java.sql.SQLException: Field ‘id‘ doesn‘t have a default value

报错信息:

java.sql.SQLException: Field ‘id’ doesn’t have a default value

解决办法:

这个报错是由于我的数据库id字段没有设置为增导致的
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_45928727/article/details/109128341