@ResponseStatus(HttpStatus.NOT_FOUND)
@ExceptionHandler(ObjectNotFoundException.class)
@ResponseBody
public ErrorInfo handleNotFound(ObjectNotFoundException e) {
LOGGER.error("not found object", e);
return new ErrorInfo("not found object", e);
}
GlobalExceptionHandler.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:plumdo-work
作者:
评论列表
文章目录