Mybatis向MySQL插入數據時一直報錯 java.sql.SQLException: Field ‘id’ doesn’t have a default value
解決方法: 打開Navicat,將主鍵id設置爲自增即可,勾選後保存