JAVA|Deadlock found when trying to get lock; try restarting transaction

批量插入数据遇到异常
this.getJdbcTemplate().batchUpdate(insertSynUserInfoSql,
new BatchPreparedStatementSetter();

com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction

    推荐阅读