标签:style blog io color ar sp div on log
xs.autodetectAnnotations(true);
/** * xml解析函数 * @param String xml信息 * @return String 接口返回信息 */ public static Object toObject(String xml,Class mainclass){ XStream xs = new XStream(new DomDriver()); xs.autodetectAnnotations(true); xs.processAnnotations(mainclass); Object obj= xs.fromXML(xml); return obj; }
标签:style blog io color ar sp div on log
原文地址:http://www.cnblogs.com/lgtrajectory/p/4069355.html