Unfortunately this is not possible. The display of the request must be unique, otherwise the application cannot determine to which method the incoming request should be bound.
Instead, you can expand the display of the query:
class HomeController{ @RequestMapping(value="home/index") public void home(){ } } class DemoController{ @RequestMapping(value="demo/index") public void demo(){ } }
source share