添加接口防抖

This commit is contained in:
韩鹏辉 2024-06-14 14:39:25 +08:00
parent b872a4a2ce
commit 39c67616fe
1 changed files with 12 additions and 12 deletions

View File

@ -152,17 +152,17 @@ public class DefaultExceptionAdvice {
return new ResponseEntity<>(response, HttpStatus.OK);
}
/**
* 使用ExceptionHandler注解声明处理TestException异常
*
*/
@ResponseBody
@ExceptionHandler(MsgException.class)
public Result exception(MsgException e) {
// 控制台打印异常
e.printStackTrace();
// 返回错误格式信息
return Result.fail(e.getMessage());
}
// /**
// * 使用ExceptionHandler注解声明处理TestException异常
// *
// */
// @ResponseBody
// @ExceptionHandler(MsgException.class)
// public Result exception(MsgException e) {
// // 控制台打印异常
// e.printStackTrace();
// // 返回错误格式信息
// return Result.fail(e.getMessage());
// }
}