Spring MVC 3: Returning XML through @ResponseBody

后端 未结 6 1544
渐次进展
渐次进展 2020-12-04 20:17

Pardon me for posting this noob question, but I have been debugging this problem for quite awhile now. I\'m having a little problem trying to get the response to return the

6条回答
  •  有刺的猬
    2020-12-04 20:33

    You will probably either have to use an XML Marshalling View or configure a MarshallingHttpMessageConverter.

    Here's a short Reference about using @ResponseBody with converters.

提交回复
热议问题