ObjectMapper objectMapper = new ObjectMapper();
System.out.println(objectMapper.writeValueAsString(myObj));
本文共 160 字,大约阅读时间需要 1 分钟。
ObjectMapper objectMapper = new ObjectMapper();
System.out.println(objectMapper.writeValueAsString(myObj));
转载于:https://my.oschina.net/jingshishengxu/blog/28542