如何在出现以下情况时重新启动事务(以便它至少执行一次):
( com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException:Deadlock found when trying to get lock; Try restarting transaction ) OR ( transaction times out ) ?
我正在使用MySQL(innoDB引擎)和Java。请帮忙并提供任何有用的资源或代码链接。
( com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException:Deadlock found when trying to get lock; Try restarting transaction ) OR ( transaction times out ) ?
我正在使用MySQL(innoDB引擎)和Java。请帮忙并提供任何有用的资源或代码链接。