Affects Version/s: 3.0.3
Fix Version/s: None
If the Controller URL-Mapping is configured in a urlMapping bean (SimpleUrlHandlerMapping), as opposed to directly in the Controller itself, overloaded controller methods become ambiguous.
For example, given the following URIs (or see forum post):
That are mapped to a single controller with the following overloaded controller methods:
Accessing either URL will fire an exception about these two methods being ambiguous.
However, if the URI mapping is specified in the controller methods' RequestMapping annotation, everything works as expected.
In this case, method #1 above is simply calling method #2 with the type argument set to null. (A common idiom.)