fix: 修改全局异常处理

This commit is contained in:
weihongyang 2022-06-23 16:00:43 +08:00
parent 093d6ee362
commit 1ac94e3d4c

View File

@ -77,14 +77,14 @@ public class YmExceptionHandler {
return result;
}
@ExceptionHandler(Exception.class)
public Result handleException(Exception ex){
logger.error(ex.getMessage(), ex);
// saveLog(ex);
return new Result().error();
}
// @ExceptionHandler(Exception.class)
// public Result handleException(Exception ex){
// logger.error(ex.getMessage(), ex);
//
//// saveLog(ex);
//
// return new Result().error();
// }
//
// /**
// * 保存异常日志