title: Spring RestTemplate - selecting MessageConverter to Use
body: <p>I am using the RestTemplate class to post to a JSON-based RESTful web service.  I can see from the documentation that there can be several MessageConverters available to the RestTemplate instances.  The problem I'm facing is that the client seems to be choosing to use an XML-based converter for some reason.  The "Content-Type" header is set to application/XML and the message body contains an XML representation of an object I'd like to send as JSON.  How can I most easily configure my RestTemplate instances to use MappingJackson2HttpMessageConverter for my requests?</p>