2019/03/13 java.lang.IllegalStateException: Ambiguous mapping found. Cannot map '' bean method
程序员文章站
2022-03-08 15:50:53
...
问题
非常恶心的问题
java.lang.IllegalStateException: Ambiguous mapping found. Cannot map ‘itemController’ bean method
错误位置 : 两个controller的@RequestMapping注解打的一样
如我的例子:
/**
* [类名]<br>
* 车辆信息控制器<br><br>
* [機能概要]<br>
* 车辆信息WEB服务<br><br>
* [変更履歴]<br>
* 2019/02/19 ver1.00 作成<br>
*
* @author NLS_
* @version 1.00
*/
@Api(description = "XL_车辆信息")
@Controller
// 这个位置的 [ DefaultWebMvcConfigurerAdapter.REQUSET_SYS_VEHICL ] 与另一个文件 的重复
// 一天时间浪费在这里
@RequestMapping(value = DefaultWebMvcConfigurerAdapter.REQUSET_SYS_VEHICLE)
public class SysXLVehicleController {
。。。
}
感谢 这位的提醒:
https://blog.csdn.net/u010892841/article/details/52136256
推荐阅读
-
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 found. Cannot map 'xxxController' bean method
-
2019/03/13 java.lang.IllegalStateException: Ambiguous mapping found. Cannot map '' bean method