XML字符串解析成对象的时候应注意空格

BomList bomList=(BomList)unmarshaller_bom.unmarshal(new StringReader(xml));
xml 不能以空格开头

原文地址:https://www.cnblogs.com/fuyuanming/p/4848155.html