mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-22 12:48:58 +08:00
fix(异常): 全局异常处理器中方法名字错误
This commit is contained in:
parent
1f4934e5bf
commit
b6be006f3b
@ -131,7 +131,7 @@ public class GlobalBizExceptionHandler {
|
|||||||
*/
|
*/
|
||||||
@ExceptionHandler({ NoResourceFoundException.class })
|
@ExceptionHandler({ NoResourceFoundException.class })
|
||||||
@ResponseStatus(HttpStatus.NOT_FOUND)
|
@ResponseStatus(HttpStatus.NOT_FOUND)
|
||||||
public R bindExceptionHandler(NoResourceFoundException exception) {
|
public R notFoundExceptionHandler(NoResourceFoundException exception) {
|
||||||
log.debug("请求路径 404 {}", exception.getMessage());
|
log.debug("请求路径 404 {}", exception.getMessage());
|
||||||
return R.failed(exception.getMessage());
|
return R.failed(exception.getMessage());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user