title: Spring rest template cannot convert from text/html
body: <p>Spring rest template throws me the following exeption</p>
  
  <pre><code>org.springframework.web.client.RestClientException: Could not extract response: no suitable HttpMessageConverter found for response type [class [Lcom.flightsms.core.dto.AirlineResponseDTO;] and content type [text/html;charset=UTF-8]
  </code></pre>
  
  <p>Here my json response</p>
  
  <pre><code>[
   {
    "airlineId": "1",
    "nameAirline": "American Airlines",
    "codeIataAirline": "AA",
    "iataPrefixAccounting": "1",
    "codeIcaoAirline": "AAL",
    "callsign": "AMERICAN",
    "type": "scheduled",
    "statusAirline": "active",
    "sizeAirline": "963",
    "ageFleet": "10.9",
    "founding": "1934",
    "codeHub": "DFW",
    "nameCountry": "United States",
    "codeIso2Country": "US"
   }
  ]
  </code></pre>
  
  <p>dto class</p>
  
  <pre><code>@Data
  public class AirlineResponseDTO {
    private String airlineId;
    private String nameAirline;
    private String codeIataAirline;
    private String iataPrefixAccounting;
    private String codeIcaoAirline;
    private String callsign;
    private String type;
    private String statusAirline;
    private String sizeAirline;
    private String ageFleet;
    private String founding;
    private String codeHub;
    private String nameCountry;
    private String codeIso2Country;
  }
  </code></pre>
  
  <p>I suspect that the matter is in the converter. I changed the converter configuration but this did not work</p>
  
  <pre><code>@Configuration
  public class MvcConfigSupport extends WebMvcConfigurationSupport {
      protected void configureMessageConverters(List&lt;HttpMessageConverter&lt;?&gt;&gt; converters) {
          converters.add(converter());
          addDefaultHttpMessageConverters(converters);
      }
  
      @Bean
      MappingJackson2HttpMessageConverter converter() {
          MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter();
          converter.setSupportedMediaTypes(Arrays.asList(MediaType.TEXT_HTML));
          return converter;
      }
  }
  </code></pre>