阅读背景:

接受/返回XML / JSON请求和响应 - Spring MVC

来源:互联网 

I need to write a rest service which accepts XML/JSON as a input (POST method) and XML/JSON as a output (based on the input format). I have tried a below approach to achieve this but doesn't helped out.Endpoint method accepts both XML/JSON but while responding it always gives either JSON or XML based on the order specified in @RequestMapping -produces.Any help will be really appreciated.I need to write a rest service which accepts XM




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: