使用 CXF,webservice是报错:

javax.ws.rs.ProcessingException: org.apache.cxf.interceptor.Fault: No message body writer has been found for class

javax.ws.rs.ProcessingException: org.apache.cxf.interceptor.Fault: No message body writer has been fjavax.ws.rs.ProcessingException: org.apache.cxf.interceptor.Fault: No message body writer has been f

出现这种问题的原因是在webService间传递的对象不能json化,只需要在传递的对象上加注解:@XmlRootElement(name = "")


javax.ws.rs.ProcessingException: org.apache.cxf.interceptor.Fault: No message body writer has been f


相关文章:

  • 2021-06-06
  • 2022-12-23
  • 2021-09-23
  • 2021-10-04
  • 2021-07-31
  • 2021-09-23
  • 2021-09-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
  • 2021-05-11
  • 2022-12-23
  • 2021-09-23
相关资源
相似解决方案