XStream解析下劃線出現重複問題

直接看代碼 XStream xs = new XStream(new XppDriver(new XmlFriendlyReplacer("_-", "_")));//解決解析下劃線時出現雙下劃線xs.alias("request", Request.class);String xml = xs.toXML(request);
相關文章
相關標籤/搜索