Software Development, Programming, Self Improvement, Java, Spring Boot.
ResponseEntity<ApiResponseDto<?>> MethodArgumentNotValidExceptionHandler(MethodArgumentNotValidException exception) { List<String> errorMessage = new ArrayList<>(); exception.getBindingResult().getFieldErrors().forEach(error -> { errorMessage.add(error.getDefaultMessage()); }); return