异常信息
java.lang.RuntimeException: org.springframework.dao.DuplicateKeyException:
### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'zhangsan' for key 'username'
### The error may involve com.pinyougou.mapper.TbUserMapper.insert-Inline
### The error occurred while setting parameters
### SQL: insert into tb_user (id, username, password, phone, email, created, updated, source_type, nick_name, name, status, head_pic, qq, account_balance, is_mobile_check, is_email_check, sex, user_level, points, experience_value, birthday, last_login_time) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'zhangsan' for key 'username'
; SQL []; Duplicate entry 'zhangsan' for key 'username'; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'zhangsan' for key 'username'
org.springframework.dao.DuplicateKeyException:
### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'zhangsan' for key 'username'
### The error may involve com.pinyougou.mapper.TbUserMapper.insert-Inline
### The error occurred while setting parameters
### SQL: insert into tb_user (id, username, password, phone, email, created, updated, source_type, nick_name, name, status, head_pic, qq, account_balance, is_mobile_check, is_email_check, sex, user_level, points, experience_value, birthday, last_login_time) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'zhangsan' for key 'username'
; SQL []; Duplicate entry 'zhangsan' for key 'username'; nested exception is com.mysql.jdbc.