Trying to post an xml data to spring rest api as given below:
@RequestMapping(value = "/views/store",method=RequestMethod.POST)
@XmlMimeType(value="application/xml")
public View addStore(@RequestBody StoreVO store){
System.out.println(store.getName());
}
StoreVO
@XStreamAlias("store")
public class StoreVO{
}
Request body is unable to bind it to value object, but its able to bind it to
String.
Any quick help is appreciated.