title: Need to verify the older way of defining handler mappings using mvc:annotation-driven?
body: <p>In an app I'm looking at I find this in the dispatcher xml:</p>
  
  <pre><code>&lt;mvc:annotation-driven /&gt;
  </code></pre>
  
  <p>Am I correct that this is the Spring 3 way of defining handler mappings (url routes). One of the controllers in the app looks like this:</p>
  
  <pre><code>@Controller
  @RequestMapping("/order")
  @SessionAttributes(OrderController.ORDER)
  public class OrderController
  {
   //...
  </code></pre>
  
  <p>I assume that the line</p>
  
  <pre><code>@RequestMapping("/order")
  </code></pre>
  
  <p>is the actual definition of the handler mapping for this url route.</p>
  
  <p>Am I correct that the older way of defining this handler mapping would have been with one of:</p>
  
  <ul>
  <li><code>BeanNameUrlHandlerMapping</code></li>
  <li><code>SimpleUrlHandlerMapping</code></li>
  <li><code>ControllerClassNameHandlerMapping</code></li>
  <li><code>CommonsPathMapHandlerMapping</code></li>
  </ul>