@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
@ExceptionHandler(Throwable.class)
@ResponseBody
public ErrorResponse handle(final Throwable ex) {
log.error("Unexpected error", ex);
return new ErrorResponse("INTERNAL_SERVER_ERROR", "An unexpected internal server error occured");
}
ExceptionHandlers.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:spring-boot-aop
作者:
评论列表
文章目录