webservice返回xml去除第一行代码方法

[img]http://dl2.iteye.com/upload/attachment/0121/8693/c85c8ff9-16e7-3657-a242-0d479678596b.png[/img]





924230235758
1
Susscce


9242302357
1
Susscce


设置这两个属性
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
marshaller.setProperty(Marshaller.JAXB_FRAGMENT, true);



924230235758
1
Susscce


9242302357
1
Susscce

你可能感兴趣的:(笔记)