org.springframework.dao.CannotAcquireLockException: SqlMapClient operation; SQL [];
--- The error occurred in sqlmap-mapping-terminalVehicleRelation.xml.
--- The error occurred while applying a parameter map.
--- Check the updateDeptName-InlineParameterMap.
--- Check the statement (update failed).
--- Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in sqlmap-mapping-terminalVehicleRelation.xml.
--- The error occurred while applying a parameter map.
--- Check the updateDeptName-InlineParameterMap.
--- Check the statement (update failed).
--- Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
出现此类问题,请检查是否有事务未提交。有可能是当前正在操作数据库,而忘记commit;