fix(异常): 全局异常处理器中方法名字错误

This commit is contained in:
carl 2024-10-24 16:30:15 +08:00
parent 1f4934e5bf
commit b6be006f3b

View File

@ -131,7 +131,7 @@ public class GlobalBizExceptionHandler {
*/
@ExceptionHandler({ NoResourceFoundException.class })
@ResponseStatus(HttpStatus.NOT_FOUND)
public R bindExceptionHandler(NoResourceFoundException exception) {
public R notFoundExceptionHandler(NoResourceFoundException exception) {
log.debug("请求路径 404 {}", exception.getMessage());
return R.failed(exception.getMessage());
}