title: Ambiguous mapping found when using class multi level @RequestMapping urls
body: <p>I'm getting the following exception if I use multi level urls in class like <code>@RequestMapping("/api/v0.1")</code>:</p>
  
  <pre><code>java.lang.IllegalStateException: Ambiguous mapping found. Cannot map 'userController'
  bean method getUsers()|to {[/api/v0.1]}: There is already 'userController' bean
  method getUser(java.lang.String) mapped.
  </code></pre>
  
  <p>It's like the method level mappings doesn't get into consideration at all.<br>
  But it's ok if I put <code>@RequestMapping("/api")</code> i.e. remove the <code>/v0.1</code> part.</p>
  
  <p>Here is the configuration stripped up to the minimal case:</p>
  
  <pre><code>@Controller
  @RequestMapping("/api/v0.1")
  public class UserController {   
  
      @RequestMapping(value = "/users")
      @ResponseBody
      public List&lt;User&gt; getUsers() {
          return null;
      }
  
      @RequestMapping(value = "/users/{username}")
      @ResponseBody
      public User getUser(@PathVariable String username) {
          return null;
      }
  }
  </code></pre>
  
  <p>web.xml</p>
  
  <pre><code>&lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Spring MVC Dispatcher Servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>servlet-context.xml:</p>
  
  <pre><code>&lt;!-- Configures the @Controller programming model --&gt;
  &lt;mvc:annotation-driven /&gt;
  
  &lt;!-- Forwards requests to the "/" resource to the "welcome" view --&gt;
  &lt;mvc:view-controller path="/" view-name="home"/&gt;    
  
  &lt;!-- Handles HTTP GET requests for /assets/** by efficiently serving up static resources in the ${webappRoot}/resources/ directory --&gt;
  &lt;mvc:resources mapping="/assets/**" location="/assets/" /&gt;
  </code></pre>
  
  <p>I'm using spring 3.1. I also tried to set <code>alwaysUseFullPath</code> property to true of the <code>RequestMappingHandlerMapping</code> bean but it didn't change the situation.</p>