title: How to make spring boot default to application/json;charset=utf-8 instead of application/json;charset=iso-8859-1
body: <p>I am updating spring-boot from 1.3.6 to 2.1.3 and while before responses had content type <code>application/json;charset=UTF-8</code>, now I am getting a charset of iso-8859-1.</p>
  
  <p>I would like to have utf 8.</p>
  
  <p>My controller looks like this:</p>
  
  <pre><code>@Controller
  public class MyController {
      @RequestMapping(value={"/myService/{serviceId}"}, method=RequestMethod.POST, consumes="application/json")
      public ResponseEntity&lt;Void&gt; handlePostServiceId(final InputStream requestInputStream,
              @PathVariable String serviceId,
              final HttpServletRequest servletRequest,) {
         &lt;$businessLogic&gt;
         return new ResponseEntity&lt;&gt;(new HttpHeaders(), HttpStatus.ACCEPTED);
  }
  </code></pre>
  
  <p>I can get it to return utf-8 if I include <code>produces= MediaType.APPLICATION_JSON_UTF8_VALUE</code> in my <code>@RequestMapping</code> but I would like to only have to set that once, rather than for every single API.</p>
  
  <p>I also tried adding </p>
  
  <pre><code>@Override
      public void configureContentNegotiation(
           ContentNegotiationConfigurer configurer) {
           configurer.defaultContentType(MediaType.APPLICATION_JSON_UTF8_VALUE);
      }
  </code></pre>
  
  <p>to my WebMvcConfigurer as suggested here: <a href="https://stackoverflow.com/a/25275291/2855921">https://stackoverflow.com/a/25275291/2855921</a>  but that broke my availability api which consumes plain/text content type.</p>
  
  <p>I also ensured that my request was UTF-8, so it is not just mirroring back the format I gave.</p>
  
  <p>Any ideas on how I can set the charset to be UTF-8 for the entire project?</p>