1、gson变量定义注解
@SerializedName("char") private String charm;//mongo转化char
2、gson中json文件转化成类
private Gson gson; List<Map<String, String>> dataList = gson.fromJson(text, new TypeToken<List<Map<String, String>>>() {}.getType());
1、gson变量定义注解
@SerializedName("char") private String charm;//mongo转化char
2、gson中json文件转化成类
private Gson gson; List<Map<String, String>> dataList = gson.fromJson(text, new TypeToken<List<Map<String, String>>>() {}.getType());