问题: org.springframework.orm.jpa.JpaSystemException: could not execute statement; nested exception is org.hibernate.exception.GenericJDBCException: could not execute statement
Caused by: java.sql.SQLException: Field ‘cust_id’ doesn’t have a default value
解决方法:创建mysql数据库时 勾选主键自增选项(Navicat Premium)
【疑问】: 创建主键自增的方法有几种?分别是什么?