Announcement Announcement Module
Collapse
No announcement yet.
extends/override @ResponseBody Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • extends/override @ResponseBody

    Hi, I hope anyone can help me.

    I use spring 3.0.5.
    I want change the content type of responseBody controller.

    but i don t know wich class i need to override or extends and how configure this in spring.

    anyone can help me?

  • #2
    You can use the produces property within the @RequestMapping annotation (see reference documentation).

    This question is probably a better candidate for StackOverflow, perhaps with the "spring" and "spring-vc" tags.

    Could you post your question there?
    The forums are moving to stackoverflow, a page explaining all this will be available there in a few days: http://spring.io/questions

    Comment

    Working...
    X