Skip to content

Commit

Permalink
fix(异常): 全局异常处理器中方法名字错误
Browse files Browse the repository at this point in the history
  • Loading branch information
carl committed Oct 24, 2024
1 parent 1f4934e commit b6be006
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public R bindExceptionHandler(BindException exception) {
*/
@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());
}
Expand Down

0 comments on commit b6be006

Please sign in to comment.