xieb
2023-09-26 faedd5d2f0ee850464f0507da93c37459bd5e3bb
src/main/java/com/dji/sample/component/GlobalExceptionHandler.java
@@ -36,7 +36,7 @@
    @ExceptionHandler({MethodArgumentNotValidException.class, BindException.class})
    public ResponseResult methodArgumentNotValidExceptionHandler(BindException e) {
        e.printStackTrace();
        return ResponseResult.error(e.getBindingResult().getAllErrors().get(0).getDefaultMessage());
        return ResponseResult.error(e.getFieldError().getField() + e.getFieldError().getDefaultMessage());
    }
}