67,513
社区成员
发帖
与我相关
我的任务
分享
org.springframework.dao.DuplicateKeyException:
### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '5' for key 'user.PRIMARY'
### The error may exist in com/atguigu/mpdemo/mapper/UserMapper.java (best guess)
### The error may involve com.atguigu.mpdemo.mapper.UserMapper.insert-Inline
### The error occurred while setting parameters
### SQL: INSERT INTO user ( id, name, age, email ) VALUES ( ?, ?, ?, ? )
### Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '5' for key 'user.PRIMARY'
; Duplicate entry '5' for key 'user.PRIMARY'; nested exception is java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '5' for key 'user.PRIMARY'