title: What's the difference between <mvc:annotation-driven /> and <context:annotation-config /> in servlet?
body: <p>I am migrating from Spring 2.5 to Spring 3. </p>
  
  <p>They have introduced <code>&lt;mvc:annotation-driven /&gt;</code> which does some black magic. This is expected to be declared in servlet configuration file only.</p>
  
  <p>In Spring 2.5 I have just used <code>&lt;context:annotation-config /&gt;</code> and <code>&lt;context:component-scan base='...'/&gt;</code> tags declared both in <code>application-context.xml</code> and dispatcher servlet configuration XML with appropriate base packages to scan.</p>
  
  <p>So I wonder what is the difference between <code>mvc:annotation-driven</code> and <code>context:annotation-config</code> tags in servlet config and what can I eliminate in Spring 3 config files?</p>