Map value类型不同的写法MapaccountMap=new HashMap ();int userId = data.get("userId").getAsInt();int accType = data.get("accType").getAsInt();String name = data.get("accType").getAsString();accountMap.put("userId",userId);accountMap.put("accType",accType);accountMap.put("name ",name );Integer userId= (Integer) accountMap.get("userId");String name = (String) accountMap.get("name");要么强制转换,要么value只能存一种类型