mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-31 08:14:18 +08:00
commit
a48a7e2267
@ -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