mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-22 12:48:58 +08:00
commit
a48a7e2267
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user