Jersey GET/POST
调用抛出了以下错误:
org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor aroundWriteTo
SEVERE: MessageBodyWriter not found for media type=application/xml, type=class java.util.ArrayList, genericType=java.util.List<javax.xml.bind.JAXBElement<com.play.ClassBase>
它适用于Accept:application/json
,但适用于application/xml
。我收到错误。如何解决?
答案 0 :(得分:0)
请确认您的应用程序的lib文件夹中有jersey-media-jaxb.jar。