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

前端 未结 10 654
野的像风
野的像风 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条回答
  •  春和景丽
    2020-12-08 04:53

    Step 1: Add the bean class into the dataFormat list:

    
         
    
    

    Step 2: Marshal the bean prior to the client call:

    
    

提交回复
热议问题