Spring項目中設置主鍵的時候經過spa
@Id@GeneratedValue(strategy = GenerationType.IDENTITY)
則在建表的時候, 主鍵應該要設置自增,不然的話,就會報這個錯誤.3d