Is there a way to configure a default mime type for a Spring MVC controller that uses Spring's content negotiation feature, i.e.
ControllerA - I want the default mime type to be JSON, so http://mycompany.com/myresourceA will return JSON, if I want XML I have to add the extension http://mycompany.com/myresourceA.xml
ControllerB - I want the default mimetype to be XML, so http://mycompany.com/myresourceB will return XML, if I want JSON I have to add the extension http://mycompany.com/myresourceB.json
In my contentNegotiationManagerBean I have the default mime type set to XML but that is a global config
<property name="defaultContentType" value="application/xml" />