Java 如何解决媒体类型=文本/普通异常的MessageBodyReader找不到?
我在回读实体时遇到Java 如何解决媒体类型=文本/普通异常的MessageBodyReader找不到?,java,web-services,jersey,jax-rs,Java,Web Services,Jersey,Jax Rs,我在回读实体时遇到MessageBodyReader未找到异常。我将实体作为字节流发送。在我的服务中,我使用application/xml作为媒体类型,但在跟踪上它表示为text/plain 堆栈跟踪: Caused by: org.glassfish.jersey.message.internal.MessageBodyProviderNotFoundException: MessageBodyReader not found for media type=text/plain;charset
MessageBodyReader未找到异常
。我将实体作为字节流发送。在我的服务中,我使用application/xml作为媒体类型,但在跟踪上它表示为text/plain
堆栈跟踪:
Caused by: org.glassfish.jersey.message.internal.MessageBodyProviderNotFoundException: MessageBodyReader not found for media type=text/plain;charset=utf-8, type=class com.mercuryinsurance.esignature.integration.provider.docusign.rest.model.response.SendDocumentsResponse, genericType=class com.mercuryinsurance.esignature.integration.provider.docusign.rest.model.response.SendDocumentsResponse.
你能把密码寄出去吗?在两端。将其添加到客户端生成器中。accept(MediaType.TEXT\u PLAIN);你能把密码寄出去吗?在两端。将其添加到客户端生成器中。accept(MediaType.TEXT\u PLAIN);