🐛 Fixing a bug. closed #I1KGX4 全局异常处理 Exception 包装返回异常问题

This commit is contained in:
lengleng 2020-06-14 17:34:24 +08:00
parent 6868be2418
commit 9cbdaceed3
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ public class GlobalExceptionHandlerResolver {
@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR) @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
public R exception(Exception e) { public R exception(Exception e) {
log.error("全局异常信息 ex={}", e.getMessage(), e); log.error("全局异常信息 ex={}", e.getMessage(), e);
return R.failed(e); return R.failed(e.getLocalizedMessage());
} }
/** /**