Commit fe3bbea8 authored by 钱坤's avatar 钱坤

全局error增加堆栈输出

parent 2292f3a0
......@@ -24,7 +24,7 @@ public class ApiExceptionConfig {
@ExceptionHandler(value = Exception.class)
@ResponseBody
public CommonResp<String> errorHandler(Exception e) {
log.error("==========全局异常: {}", e.getMessage());
log.error("==========全局异常: {}", e.getMessage(), e);
return CommonResp.failed(e.getMessage());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment