Gson转换int遍double
Gson在转换时会将原有Integer类型转换成Double类型的现象调用:Gson gson = GsonUtil.gsonBuilder();Map<String, Object> parameterMap = gson.fromJson(postData,new TypeToken<TreeMap<String, Object>>(){}.getType());重写Gson:public static Gs