提交 9cbdacee 编写于 作者: pig_冷冷's avatar pig_冷冷

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

上级 6868be24
......@@ -49,7 +49,7 @@ public class GlobalExceptionHandlerResolver {
@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
public R exception(Exception e) {
log.error("全局异常信息 ex={}", e.getMessage(), e);
return R.failed(e);
return R.failed(e.getLocalizedMessage());
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册