|  |  |  | 
|---|
|  |  |  | } catch (Exception e) { | 
|---|
|  |  |  | // 输出SQL异常信息 | 
|---|
|  |  |  | log.error("SQL ErrorException:", e); | 
|---|
|  |  |  | log.info("SQL Parameters: {}", boundSql.getParameterObject()); | 
|---|
|  |  |  | log.info("SQL Id: {}", sqlId); | 
|---|
|  |  |  | log.info("SQL: {}", PrintSqlHelp.getFullSql(configuration, boundSql)); | 
|---|
|  |  |  | log.error("SQL Id: {}", sqlId); | 
|---|
|  |  |  | log.error("SQL Parameters: {}", boundSql.getParameterObject()); | 
|---|
|  |  |  | log.error("SQL: {}", PrintSqlHelp.getFullSql(configuration, boundSql)); | 
|---|
|  |  |  | // 根据源异常类型进行返回 | 
|---|
|  |  |  | if (e instanceof InvocationTargetException) { | 
|---|
|  |  |  | throw new InvocationTargetException(e); | 
|---|