title: org.springframework.util.InvalidMimeTypeException: Invalid mime type "application:json;charset=utf8": does not contain '/'
body: <pre><code>    RestTemplate restTemplate = new RestTemplate();
  
      HttpHeaders headers = new HttpHeaders();
  
      List&lt;MediaType&gt; mediaTypeList = new ArrayList&lt;&gt;();
      mediaTypeList.add(MediaType.APPLICATION_JSON);
      //mediaTypeList.add(MediaType.APPLICATION_JSON_UTF8);
      mediaTypeList.add(MediaType.TEXT_PLAIN);
      mediaTypeList.add(MediaType.ALL);
      headers.setAccept(mediaTypeList);
  
      headers.add(HttpHeaders.ACCEPT_ENCODING, "gzip, deflate");
      headers.add(HttpHeaders.ACCEPT_LANGUAGE, "Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,zh-TW;q=0.7");
      headers.add(HttpHeaders.USER_AGENT, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36");
      headers.add(HttpHeaders.CONTENT_LENGTH,"178");
      headers.add(HttpHeaders.CONTENT_TYPE,"application/x-www-form-urlencoded");
      headers.add(HttpHeaders.REFERER,"http://www.7dingdong.com/");
      headers.add(HttpHeaders.ORIGIN,"http://www.7dingdong.com");
      headers.add(HttpHeaders.CONNECTION,"keep-alive");
      headers.add(HttpHeaders.HOST, "7ddapi.7dingdong.com");
      HttpEntity&lt;String&gt; httpEntity = new HttpEntity&lt;String&gt;("",headers);
      StringBuffer paramsURL = new StringBuffer(goLoginUrl);
      paramsURL.append("?token=" +  token)
              .append("&amp;t="+ t)
              .append("&amp;device="+ device)
              .append("&amp;user_name="+ user_name)
              .append("&amp;password="+ password)
              .append("&amp;company="+ company)
              .append("&amp;api="+ api);
  
  
      ResponseEntity&lt;Object&gt; response = restTemplate.exchange(
              paramsURL.toString(),
              HttpMethod.GET,
              httpEntity,
              Object.class);
   /*
      ResponseEntity&lt;String&gt; response = restTemplate.postForEntity(goLoginUrl,httpEntity,String.class);
   */
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Exception in thread "main" org.springframework.http.InvalidMediaTypeException: Invalid mime type "application:json;charset=utf8": does not contain '/'
      at org.springframework.http.MediaType.parseMediaType(MediaType.java:534)
      at org.springframework.http.HttpHeaders.getContentType(HttpHeaders.java:932)
      at org.springframework.web.client.HttpMessageConverterExtractor.getContentType(HttpMessageConverterExtractor.java:133)
      at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:90)
      at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:995)
      at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:978)
      at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:737)
      at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:670)
      at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:579)
      at Login.goLogin(Login.java:268)
      at Login.main(Login.java:293)
  Caused by: org.springframework.util.InvalidMimeTypeException: Invalid mime type "application:json;charset=utf8": does not contain '/'
      at org.springframework.util.MimeTypeUtils.parseMimeType(MimeTypeUtils.java:197)
      at org.springframework.http.MediaType.parseMediaType(MediaType.java:531)
      ... 10 more
  Disconnected from the target VM, address: '127.0.0.1:54273', transport: 'socket'
  </code></pre>
  
  <hr>
  
  <p>How should I solve this problem？Who can help me?</p>