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;