试图检索 HttpServeletRequest 对象的数据。但它会抛出 Java Lang Illegal State 异常:
已经为此请求调用了 getInputStream()
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());
}