spring死锁问题

大家好,碰到这样的一个问题,怎么解决:
org.springframework.dao.CannotAcquireLockException:
Error updating database. Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
The error may involve com.weitoo.server.mapper.SequenceMapper.updateSequence-Inline
The error occurred while setting parameters
SQL: UPDATE sequence SET NEXTID = ? WHERE NAME = ?
Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
; SQL []; Lock wait timeout exceeded; try restarting transaction; nested exception is java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction}

阅读 7.3k
2 个回答

这个是数据库死锁了,尝试解决数据库的问题先吧

新手上路,请多包涵

同样遇到了这个问题

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题