SyntaxFix
Write A Post
Hire A Developer
Questions
This is simple method to get request data from HttpServletRequest using Java 8 Stream API:
HttpServletRequest
String requestData = request.getReader().lines().collect(Collectors.joining());