Spring MVC multiple url mapping to the same controller method
<p>Let's say we have 3 url-patterns for a servlet named dispatcher in web.xml:</p>

<pre><code>&lt;servlet-mapping&gt;
    &lt;servlet-name&gt;dispatcher&lt;/servlet-name&gt;
    &lt;url-pattern&gt;/aaa/*&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
&lt;servlet-mapping&gt;
    &lt;servlet-name&gt;dispatcher&lt;/servlet-name&gt;
    &lt;url-pattern&gt;/bbb/*&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
&lt;servlet-mapping&gt;
    &lt;servlet-name&gt;dispatcher&lt;/servlet-name&gt;
    &lt;url-pattern&gt;/ccc/*&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
</code></pre>

<p>and a controller method:</p>

<pre><code>@RequestMapping(value = "/xxx", method = RequestMethod.POST)
public String foo() {}
</code></pre>

<p>Since the path value in @RequestMapping does not contain servlet path, when users request</p>

<pre><code>/aaa/xxx
/bbb/xxx
/ccc/xxx
</code></pre>

<p>the requests will all be mapped to method foo.</p>

<p>I think this could cause potential problem if the web site is very complicated. Is it a flaw in Spring Web MVC or I misunderstand something?</p>