1前台处理如下:

$.ajax({
url:"saveMapInfo",
type:"POST",
dataType:"json",
contentType:'application/json;charset=utf-8',
data:JSON.stringify(dti),
success:function(data){
if(data.code==0){
$.messager.show({
title:'提示',
msg:'保存成功',
timeout:10000,
showType:'slide'
});
$('#table').datagrid('reload','${ctx}/listMapInfo');
}else{
showError(data.info?data.info:'保存失败!');
}
},
error:function(data){
showError('保存失败!');
}
});

其中dti是需要传入的数组或集合对象

2后台接收

@RequestMapping("/saveMapInfo")
@ResponseBody
public JsonResult saveMapInfo(@RequestBody Map<String,DataTableInfo> dti) throws JsonGenerationException, JsonMappingException, IOException
{
boolean br=this.fullTextSearchService.saveMapInfo(dti);
JsonResult info=new JsonResult();
info.setCode(br?0:1);
return info;
}

使用的是@RequestBody注解

05-18 21:22