修复一个提示错误,增加日志打印sql的开关

pull/65/head
fengshuonan 2021-01-13 21:47:23 +08:00
parent d8e482bc7d
commit eedbeb109e
2 changed files with 2 additions and 1 deletions

View File

@ -197,7 +197,7 @@ public class GlobalExceptionHandler {
}
// 默认响应前端json
ErrorResponseData errorResponseData = renderJson(authException);
ErrorResponseData errorResponseData = renderJson(authException.getErrorCode(), authException.getUserTip(), authException);
ResponseRenderUtil.renderJsonResponse(response, errorResponseData);
return null;
}

View File

@ -36,6 +36,7 @@ mybatis-plus:
cache-enabled: true
lazy-loading-enabled: true
multiple-result-sets-enabled: true
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config:
banner: false
enable-sql-runner: true