String转换为Map Map<String,Integer> rulsMap = new Gson().fromJson(cachedobj.toString(),new TypeToken<Map<String,Integer>>() {}.getType());