Ambiguous mapping found. Cannot map 'XXXController' bean method”解决方法
程序员文章站
2022-07-15 11:44:32
...
错误导致:
当时因为在controll层的Java文件命名不规范,所以修改了文件的名称
再次启动项目的时候,出现错误:
将该XXXController'中的@controller注释掉
查阅所知:
-
bean重复初始化
-
在不同的Controller中定义的映射重复。
解决方案:
将XXXController中的@Controller删除,重新再敲一次即可。
上一篇: 找工作的一些经验 工作面试
推荐阅读
-
Ambiguous mapping Cannot map ‘ XXController‘ method,已解决
-
Ambiguous mapping found. Cannot map 'xxx' bean method
-
java.lang.IllegalStateException: Ambiguous mapping found. Cannot map 'userInfoController' bean metho
-
Ambiguous mapping found. Cannot map 'XXXController' bean method”解决方法
-
Ambiguous mapping found. Cannot map 'xxxController' bean method
-
java.langIllegalStateException: Ambiguous mapping found. Cannot map 'outAppliController' bean method
-
Spring mvc Ambiguous mapping found. Cannot map controller bean method
-
解决“Ambiguous mapping. Cannot map ‘indexController‘ method”报错,其实很简单,只是不够细心
-
Ambiguous mapping found. Cannot map 'xxxController' bean method
-
Java Ambiguous mapping. Cannot map ‘xxx‘ method问题解决