public static String getResourceBody(HttpServletRequest request){ String str, wholeStr = ""; try{ BufferedReader reader = new BufferedReader(new InputStreamReader(request.getInputStream())); while((str = reader.readLine()) != null){ wholeStr += str; } }catch (Exception e){ logger.error("StringUtil-->getResourceBody: ", e); } return wholeStr; }
解析body中的json字符串数据
最新推荐文章于 2024-08-01 19:56:03 发布