Ambiguous mapping found. Cannot map 'competeController' bean method

风流不在谈锋胜,袖手无言味最长。这篇文章主要讲述Ambiguous mapping found. Cannot map ' competeController' bean method相关的知识,希望能为你提供帮助。
报错:
Error creating bean with name ‘org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0‘: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping found. Cannot map ‘competeController‘ bean method
使用SpringMVC时遇到的错误,原因是自己太不仔细了,视图层向控制层传递数据时,在控制层中不同的两个方法上面写了相同的映射路径,
【Ambiguous mapping found. Cannot map ' competeController' bean method】也就是@RequestMapping("")中引号中的值出现了相同,导致了上面的错误!原谅我的粗心大意!
 

    推荐阅读