Field 'id' doesn't have a default value

Spring項目中設置主鍵的時候經過spa

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)

則在建表的時候, 主鍵應該要設置自增,不然的話,就會報這個錯誤.3d

相關文章
相關標籤/搜索