TA的每日心情 | 开心 2021-12-13 21:45 |
---|
签到天数: 15 天 [LV.4]偶尔看看III
|
- @RequestMapping(value = "updateInvestorApplyAccountNo", method = RequestMethod.POST)
- @ResponseBody
- public void updateInvestorApplyAccountNo(HttpServletRequest request,
- HttpServletResponse response,
- @RequestBody String requestBody) {
- int num = 0;
- String result = "";
- //下面是把拿到的json字符串转成 json对象
- JSONObject jsStr = JSONObject.parseObject(requestBody); //将字符串{“id”:1}
- //int jsID = Integer.parseInt(jsStr.getString("id"));//获取id的值
- /**
- * json对象转换成java对象
- */
- InvestorApplyModel stud = (InvestorApplyModel) JSONObject.toJavaObject(jsStr,InvestorApplyModel.class);
- }
-
复制代码
|
|