Scenario:
Need to add a spring mvc project as dependency (scope test) to other spring mvc project.
Problem:
Ambiguous mapping. Cannot map 'xyzController' method
Reason:
Both projects had web controller with request mapping annotation only at method level. As the rest of it when spring tries to map / , we have ambibious maping scenario where both the controllers quality for the mapping and this result in the exception.
Solution:
Add Requestmapping annotation at the both controller (or one of them) so that spring can map urls distinctly