前端:
var specialtyMap= new Map();
//msp转object
let obj= Object.create(null);
for (let[k,v] of specialtyMap) {
obj[k] = v;
}
//object转json
JSON.stringify(obj);
let specialty=JSON.stringify(obj);
$("#baseForm").serialize()+"&vestMap="+specialty
后端:
public Map<String, Object> saveOrUpdate(Tution entity,String specialtyMap) {
Map<String, String> map= (Map<String, String>)JSON.parse(specialtyMap);
}