Is it possible to fetch RequestBody from WebRequest object? I am handling exceptions from controller advice so would like to handle the request as well to send data back in response. I saw its documentation what I understood is we can fetch query params from that object for GET request. If there is any other approach which I missed can somebody please help.
@NonNull
@Override
protected ResponseEntity<Object> handleHttpMessageNotReadable(
@Nullable HttpMessageNotReadableException ex,
@Nullable HttpHeaders headers,
HttpStatus status,
@Nullable WebRequest request) {
//handling of input request we got from Spring Controller
}