//获取json对象
BufferedReader br = new BufferedReader(new
        InputStreamReader(req.getInputStream(), "UTF-8"));
String line = null;
StringBuilder sb = new StringBuilder();
while ((line = br.readLine()) != null) {
    sb.append(line);
}
String reqBody = sb.toString();

//转成map
Map maps = (Map) JSON.parse(reqBody)

json转map:https://www.cnblogs.com/jpfss/p/8625526.html

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
  • 2022-01-09
  • 2021-11-05
  • 2021-12-16
猜你喜欢
  • 2021-04-03
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
相关资源
相似解决方案