运行IDEA的一个项目,报错“Field 'id' doesn't have a default value”

原因:在数据库建表时对 id 没有设置    自动递增

解决方案:将mysql中对应表的id字段设置为自动递增即可

以Navicat图形界面为例

Field 'id' doesn't have a default value

相关文章:

  • 2021-08-19
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2022-02-28
  • 2021-08-18
猜你喜欢
  • 2022-12-23
  • 2021-04-06
  • 2022-12-23
  • 2021-04-13
相关资源
相似解决方案