【7.1.5】mybatis异常打出堆栈

pull/83/head
fengshuonan 2021-10-12 21:22:31 +08:00
parent 4db6cc4117
commit 867ed75d89
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ public class GlobalExceptionHandler {
@ExceptionHandler(MyBatisSystemException.class)
@ResponseBody
public ErrorResponseData persistenceException(MyBatisSystemException e) {
log.error(">>> mybatis操作出现异常,具体信息为:{}", e.getMessage());
log.error(">>> mybatis操作出现异常,", e);
Throwable cause = e.getCause();
if (cause instanceof PersistenceException) {
Throwable secondCause = cause.getCause();