errorAttributes.put("error", HttpStatus.BAD_REQUEST.getReasonPhrase());
errorAttributes.put("path", request.getRequestURI());
errorAttributes.put("method", request.getMethod());
- errorAttributes.put("request", request.get)
errorAttributes.put("timestamp", new Date());
Map<String, String> errors = new HashMap<>();
e.getBindingResult().getAllErrors().forEach((error) -> {