title: Default MediaType for Http Requests
body: <p>My SpringBoot app makes HTTP requests to external APIs, all of which consume/produce JSON. By default, my app uses Jackson for data-binding, and all HTTP requests (using RestTemplate) have apparently used <code>Accept</code> and <code>Content-Type</code> headers of <code>application/json</code>.</p>
  
  <p>Recently I needed to make use of the Jackson xml data-binding library (not for http data binding), so I included that dependency in the app and it seems that SpringBoot has decided to implicitly use <code>application/xml</code> for all outgoing HTTP requests.</p>
  
  <p>How can I configure the app to default to JSON when making HTTP requests  without having to explicitly set it in the header of every request?</p>