In Spring MVC i have
@RequestMapping({ "foo", "bar" })
public String method() {...
This method works with mappings "foo" or "bar". How to know in a method which one of two mappings worked? Like:
System.out.println("Your mapping is" + mapping)
gets me
Your mapping is bar
@PathVariable
is unsuitable. Or maybe set restrictions on the possible values? How I can do it?