Saturday, June 11, 2016

Ambigious mapping


Need to add a spring mvc project as dependency (scope test) to other spring mvc project.


Ambiguous mapping. Cannot map 'xyzController' method 


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.


Add Requestmapping annotation at the both controller (or one of them) so that spring can map urls distinctly