Merge pull request #1118 from Awei-996/jdk17
Some checks failed
同步代码 / gitcode (push) Has been cancelled
同步代码 / gitlink (push) Has been cancelled
同步代码 / gitee (push) Has been cancelled

fix(异常): 全局异常处理器中方法名字错误
This commit is contained in:
冷冷 2024-10-24 16:38:19 +08:00 committed by GitHub
commit a48a7e2267
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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());
}