lyhzzz před 2 roky
rodič
revize
888b50cfd0

+ 1 - 1
src/main/java/com/fdkankan/manage/exception/GlobalExceptionHandler.java

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