Error updating database. Cause: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry 'jack' for key 'login_acct'
The error may exist in file [D:\Program Files\Java\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\atcrowdfunding02-admin-webui\WEB-INF\classes\mybatis\mapper\AdminMapper.xml]
The error may involve com.atguigu.crowd.mapper.AdminMapper.insert-Inline
The error occurred while setting parameters
SQL: insert into t_admin (id, login_acct, user_pswd, user_name, email, create_time ) values (?, ?, ?, ?, ?, ? )
Cause: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry 'jack' for key 'login_acct'
]]
违反了唯一键(login_acct)约束,数据库里面已经有一个jack了
加了唯一索引吧,jack数据库里已经有了,冲突了