代码层面如何解决Lock wait timeout exceeded; try restarting transaction代码如下:org.springframework.dao.CannotAcquireLockException: ### Error updating database. Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction### The error may involve com.alibaba.tboss.dal.mysql.workOrder.mapper.AssetBeanMapperExt.updateByPrimaryKeySelective-Inline### The error occurred while setting parameters### SQL: update idc_asset_list SET sn = ?, MODIFIER = 'system', GMT_MODIFIED = current_timestamp, remark = ?, flow_state = ? where asset_id = ? and is_deleted = 'n'### 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
添加回答
举报
0/150
提交
取消