Accessing multiple controllers with same request mapping : <p>Please find my HomeController and DemoController</p>

<pre><code>class HomeController{
@RequestMapping(value="index")
public void home(){
}
}

class DemoController{
@RequestMapping(value="index")
public void demo(){
}
}
</code></pre>

<p>when I try to send a request to index, which one will get executed?
I wanted to know how can we have same request mapping value for multiple controllers</p>
