SpringMVC“Ambiguous mapping found. Cannot map 'XXXController' bean method”解决方法
2017-12-05 22:13
1506 查看
今天搭的项目启动时报错
Ambiguous mapping. Cannot map 'XXXXXController' method
Ambiguous mapping. Cannot map 'XXXXXController' method
出现这种问题的原因是:
@RequestMapping(value=XXX) 可能是同一个Controller或者是不同的Controller的XXX重名导致。
我的报错是因为在不同的Controller中(value="xxx")中的xxx相同,将xxx改不同就可以了
相关文章推荐
- Ambiguous mapping found. Cannot map 'portalUserController' bean method
- 【错误积累】Ambiguous mapping found. Cannot map '***Controller' bean method
- Ambiguous mapping found. Cannot map 'complaintController' bean method
- 解决 Ambiguous mapping found. Cannot map 'userController.Create' bean
- Ambiguous mapping found. Cannot map 'xxxxController' bean method
- java.lang.IllegalStateException: Ambiguous mapping found. Cannot map 'itemsController' bean method
- Ambiguous mapping found. Cannot map 'fancyController' bean method
- Spring mvc Ambiguous mapping found. Cannot map controller bean method
- java.lang.IllegalStateException: Ambiguous mapping found. Cannot map 'cityController' bean method
- java.lang.IllegalStateException: Ambiguous mapping found. Cannot map 'itemController' bean method
- Ambiguous mapping found. Cannot map 'xxxxController' bean method
- java.lang.IllegalStateException: Ambiguous mapping found. Cannot map 'itemCatController' bean method
- Java--- Ambiguous mapping. Cannot map "***Controller" been method解决办法
- Ambiguous mapping. Cannot map "***Controller" been method解决办法
- Ambiguous mapping. Cannot map 'XXXXXController' method
- java.lang.IllegalStateException: Ambiguous mapping found. Cannot map 'XXXXX' bean
- Ambiguous mapping. Cannot map 'XXXXXController' method
- 异常java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'xxx' method
- Ambiguous mapping. Cannot map 'testController' method
- java.lang.IllegalStateException: Ambiguous mapping found. Cannot map 'occupationalHistoryController'