title: Alternative to deprecated WebMvcConfigurerAdapter?
body: <pre><code>@SuppressWarnings("deprecation")
  @EnableWebMvc
  @Configuration
  @ComponentScan("my.projects")
  
      public class WebConfig extends WebMvcConfigurerAdapter 
      {
          @Override
          public void extendMessageConverters(List&lt;HttpMessageConverter&lt;?&gt;&gt; converters) {
              converters.add(new CsvHttpMessageConverter&lt;&gt;());
          }
          public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
              configurer.favorPathExtension(true).
  favorParameter(true).
  parameterName("mediaType").ignoreAcceptHeader(false)
              .useJaf(false).defaultContentType(MediaType.APPLICATION_JSON).mediaType("xml", MediaType.APPLICATION_XML)
                      .mediaType("json", MediaType.APPLICATION_JSON).mediaType("csv", new MediaType("text", "csv"));
          }
      }
  </code></pre>
  
  <p>The above wont work without extending <code>WebMvcConfigurerAdapter</code> which is deprecated. Is there an alternative?</p>