title: How can I change the ordering of mapped URLs in Spring MVC?
body: <p>I'm running Spring MVC 3.x and I have one Controller with <em>RequestMapping</em> annotations (<strong>DefaultAnnotationHandlerMapping</strong>) and I have one <strong>ServletForwardingController</strong> with some additional mappings via <strong>SimpleUrlHandlerMapping</strong>. When I boot up my application, I see the following:</p>
  
  <pre><code>...
  13:24:17,747 INFO  [DefaultAnnotationHandlerMapping] Mapped URL path [/{query}] onto handler [com.foo.controllers.BarController@1b20a36]
  13:24:17,997 INFO  [SimpleUrlHandlerMapping] Root mapping to handler [org.springframework.web.servlet.mvc.ParameterizableViewController@598535]
  13:24:18,044 INFO  [SimpleUrlHandlerMapping] Mapped URL path [/spring*.ftl] onto handler [org.springframework.web.servlet.mvc.ServletForwardingController@56eb62]
  13:24:18,044 INFO  [SimpleUrlHandlerMapping] Mapped URL path [/shared-resources/**] onto handler [org.springframework.web.servlet.mvc.ServletForwardingController@56eb62]
  ...
  </code></pre>
  
  <p>My BarController is of course catching all requests (like /spring_en_US.ftl), but I want it to be tried last. In other words, I want the <strong>SimpleUrlHandlerMapping</strong> to take priority over the <strong>DefaultAnnotationHandlerMappings</strong> in my application.</p>