title: Spring request mapping wildcard exceptions
body: <p>Can I put /** wildcard in a middle of request mapping such as:  "/some/resource/**/somthing"</p>
  
  <p>In Spring 3 I can do this </p>
  
  <pre><code>@RequestMapping("/some/resource/**")
  </code></pre>
  
  <p>to map </p>
  
  <pre><code>/some/resource/A  -&gt; ControllerMethod1
  /some/resource/A/B -&gt; ControllerMethod1
  /some/resource/A/B/C/D/E/F -&gt; ControllerMethod1
  </code></pre>
  
  <p>for any number of paths parts</p>
  
  <p>However this mapping is too greedy and will not allow me to map a sub URL <code>@RequestMapping("/some/resource/**/somthing")</code> to another controller such as </p>
  
  <pre><code>/some/resource/A/somthing  -&gt; ControllerMethod2
  /some/resource/A/B/somthing -&gt; ControllerMethod2
  /some/resource/A/B/C/D/E/F/somthing -&gt; ControllerMethod2
  </code></pre>
  
  <p>How can i do this?</p>