Skip to content

Commit

Permalink
Merge pull request #1118 from Awei-996/jdk17
Browse files Browse the repository at this point in the history
fix(异常): 全局异常处理器中方法名字错误
  • Loading branch information
lltx authored Oct 24, 2024
2 parents 1f4934e + b6be006 commit a48a7e2
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 a48a7e2

Please sign in to comment.