错误信息:xxx.insert (batch index #1) failed.Cause: java.sql.BatchUpdateException:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' ' at line 1
调用saveBatch()和updateBatchById()批量保存或修改时,保存对象所在集合中,不可存在空对象。不然就会报批量保存错误。