//java8 可用
String body = request.getReader().lines().collect(Collectors.joining());
request.getReader().lines()得到一个stream流
.collect(Collectors.joining())相当于是拼接字符串
例:List list = Arrays.asList("1","2","3");
String s = list.stream.collect(Collectors.joining(","))
打印:s = 1,2,3
标签:HttpServletRequest,请求,Collectors,collect,list,request,获取,stream,joining From: https://www.cnblogs.com/xxfcode/p/17144816.html