utils Converters.class中报错
Opened this issue · 1 comments
yinjun622 commented
public static String parseDoubanObjToXMLStr(T obj) throws IOException {
XmlHttpContent content = new XmlHttpContent(DefaultConfigs.DOUBAN_XML_NAMESPACE, "entry", obj);
ByteArrayOutputStream os = new ByteArrayOutputStream();
content.writeTo(os);
String result = new String(os.toByteArray());
return result;
}
content.writeTo(os);
这块报错看了一下
import com.google.api.client.http.xml.XmlHttpContent; 1.10.3版本
中只有writeTo(XmlSerializer serializer)该方法~~
是不是我这边的问题~
UglyTroLL commented
您是直接用maven编译的吗?