CXF: No message body writer found for class - automatically mapping non-simple resources

前端 未结 10 647
野的像风
野的像风 2020-12-08 03:59

I am using the CXF rest client which works well for simple data types (eg: Strings, ints). However, when I attempt to use custom Objects I get this:

Exceptio         


        
10条回答
  •  -上瘾入骨i
    2020-12-08 04:40

    You can try with mentioning "Accept: application/json" in your rest client header as well, if you are expecting your object as JSON in response.

提交回复
热议问题