json字符串轉實體類

/** * * 將json形式字符串轉換爲java實體類 * */ public static <T> T parse(String jsonStr, Class<T> clazz) { ObjectMapper om = new ObjectMapper(); T readValue = null; try { readValue = om.readVal
相關文章
相關標籤/搜索