resthub / resthub-spring-stack

RESThub Spring stack
http://resthub.org/spring-stack.html
Other
121 stars 66 forks source link

Remove XML from default GenericController serialization #56

Closed sdeleuze closed 12 years ago

sdeleuze commented 12 years ago

Keep only JSON by default because JAXB can be very intrusive (lot of annotations needed on your model) and JSON seems to be a right choice as the default settings.

Be careful, this is a breaking change, application using previously the default JSON + XML behaviour should specify at the class level of their controller :

@Consumes({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON }) @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })