我正在尝试为List实现MessageBodyWriter.使用此实现,我有一个空指针异常在线; marshaller.marshal(o,entityStream);
@Provider
@Produces(MediaType.APPLICATION_XML)
public class MyListProvider implements MessageBodyWriter
最佳答案
public void writeTo(List
我正在尝试为List实现MessageBodyWriter.使用此实现,我有一个空指针异常在线; marshaller.marshal(o,entityStream);
@Provider
@Produces(MediaType.APPLICATION_XML)
public class MyListProvider implements MessageBodyWriter
public void writeTo(List