java 如何接收数据集参数

     @RequestBody String requestBody  可以接收 josn  字符串 ,list 等等

 

 

public int updateLoaneePriorityNew(HttpServletRequest request,
            @RequestParam("applicationID") int applicationID, // 借款工单号
            @RequestBody String requestBody
            ) {
         
      // String aa= request.getParameter("list");
       
       //JSONObject jsonObject = JSONObject.fromObject(requestBody);
        JSONObject jsonObject = JSONObject.parseObject(requestBody);
       
        //返回请求结果
        JSONObject result= new JSONObject();
        result.put("success", "true");

        
        return  1;
    }

posted @ 2016-08-08 18:14  秋香姑娘请你不要紧张  阅读(934)  评论(0编辑  收藏  举报