Welcome to the new Spring.io forums!
If this is your first visit, be sure to check out the
by clicking the link above, and for security reasons, use the
forgot password link to reset your password..
You may have to register before you can post: click the register
link above to proceed. To start viewing messages, select the forum that you want to visit
from the selection below.
No announcement yet.
Does roo generated controllers support Content Negotiation for REST?Page Title Module
What you are looking for is Springs new ContentNegotiatingViewResolver which allows you to configure the document types. It is documented here http://tinyurl.com/kpexuu and allows you to render views in XML, JSON, ATOM and a couple more.
This feature is not currently enabled by default in Roo managed applications but can be easily added to the webmvc-config.xml file. Keep in mind when you setup JSON with the Jackson library you will need to deal with cyclic references.