ObjectMapper om = new ObjectMapper();
String hisData = om.writeValueAsString(sourcing.getSourcingMaintain());//sourcing里面有sourcingMaintain对象
ObjectMapper om = new ObjectMapper();
String hisData = om.writeValueAsString(sourcing.getSourcingMaintain());//sourcing里面有sourcingMaintain对象
转载于:https://my.oschina.net/u/2342541/blog/714877