从request对象中获取请求json格式的参数
2021-04-02 01:25
标签:obj buffere end amr 对象 adl buffered stringbu puts 从request对象中获取请求json格式的参数 标签:obj buffere end amr 对象 adl buffered stringbu puts 原文地址:https://www.cnblogs.com/xr210/p/14603295.htmlBufferedReader streamReader = new BufferedReader( new InputStreamReader(request.getInputStream(), "UTF-8"));
StringBuilder responseStrBuilder = new StringBuilder();
String inputStr;
while ((inputStr = streamReader.readLine()) != null){
responseStrBuilder.append(inputStr);
}
JSONObject jsonObject = JSONObject.parseObject(responseStrBuilder.toString());
上一篇:TFS安装配置
下一篇:JS实现无限极分类下拉列表
文章标题:从request对象中获取请求json格式的参数
文章链接:http://soscw.com/index.php/essay/71172.html