前端页面:
$.ajax({ url: url, data: JSON.stringify(data), dataType: "json", contentType: "application/json", type: "POST", success: function (data) { if(data.returnCode == "000000"){ alert("配置成功!"); esst.popups_close(obj); }else{ alert("配置失败!"); } } });
后台接收:
@RequestMapping(value = "update",method = RequestMethod.POST) @ResponseBody public ReturnBean<?> update(@RequestBody List<Entity> list, HttpServletRequest request, HttpServletResponse response) { }