|
@@ -20,7 +20,7 @@ public class GlobalExceptionHandler {
|
|
|
@ExceptionHandler(value = Exception.class)
|
|
|
public ResultData exceptionHandler(Exception e) throws Exception {
|
|
|
log.error("服务错误:", e);
|
|
|
- return ResultData.error( 500, e.getMessage());
|
|
|
+ return ResultData.error( 500, e.getCause().getMessage());
|
|
|
}
|
|
|
|
|
|
/**
|