org.springframework.dao.DuplicateKeyException: ### Error updating database

org.springframework.dao.DuplicateKeyException: ### Error updating database. Cause:java.sql.SQLIntegrityConstraintViolationException: Duplicate entry ‘5-42560485002194945-FM17057106’ for key ‘lwms_lot_u1’ ### The error may involve org.zjhy.wms.i…

  • 解决:在导入前,查lwms_lot_u1索引,先根据索引中包含的字段,去查询一下数据库中是否已经存在数据,若存在,不导入(或删除)即可。

你可能感兴趣的:(org.springframework.dao.DuplicateKeyException: ### Error updating database)