title: WebMvcConfigurerAdapter and annotation-driven conflict?
body: <p>I am trying to implement converter in SpringMVC and configure it like in
  <a href="https://stackoverflow.com/questions/11273443/how-to-configure-spring-conversionservice-with-java-config">How to configure Spring ConversionService with java config?</a>
  and some weird things happened.</p>
  
  <p>ApplicationConfiguration.java</p>
  
  <pre><code>@Configuration
  @EnableWebMvc
  public class ApplicationConfiguration extends WebMvcConfigurerAdapter {
  
      @Override
      public void addFormatters(FormatterRegistry formatterRegistry) {
          formatterRegistry.addConverter(new StringToFoo());
          formatterRegistry.addConverter(new FooToString());
      }
  }
  </code></pre>
  
  <p>I have a jsp with a form to pass a Foo object to controller. 
  And I have <code>&lt;mvc:annotation-driven/&gt;</code> and component-scan in xml.</p>
  
  <p>It turns out that the code I quoted was executed at init, but the converters were not called when passing from jsp to controller, </p>
  
  <p>When I delete annotation-driven, everything works, converter was correctly called in my controller. However, before I added WebMvcConfigurerAdapter to the proejct, I had to include annotation-driven to init servlet.</p>
  
  <p>So my questions:</p>
  
  <p>What does annotation-driven do?
  Does WebMvcConfigurerAdapter (or the annotations used) have conflict with annotation-driven?</p>