trying to retrieve that data for HttpServeletRequest object. But it throwing Java Lang Illegal State Exception:
getInputStream() has already been called for this request
try {
String test = null;
if (request.getMethod().equalsIgnoreCase(request.getMethod())) {
test = request.getReader().lines().collect(Collectors.joining(System.lineSeparator()));
}
} catch (Exception ec) {
logger.error("Exception newRemarksUpdated : " + ec.getMessage());
}