展开全部
List> finishMapList = new ArrayList>();
Map map = new HashMap();
map.put("key", "A");
map.put("key", "A");
finishMapList.add(map);
map = new HashMap(); //map要重新new不然还是上一个map
map.put("key", "B");
map.put("key", "B");
finishMapList.add(map);
model.addAttribute("finishMapList", finishMapList);
return "rm/riskmanager/isfinishtreatment";
}
map要重新new不然还是上一个map.
map.put("key", "B");其实是在修改map中的内容不是新的
不知62616964757a686964616fe78988e69d8331333335333735道这样说你明不明白
不明白就继续问吧