Caused by: java.lang.IllegalStateException: Ambiguous mappin

时间:2022-07-11 18:50:03

Caused by: java.lang.IllegalStateException: Ambiguous mapping found. Cannot map ‘myCockpitMgrController’ bean method

报错为:Caused by: java.lang.IllegalStateException: Ambiguous mapping found. Cannot map ‘myCockpitMgrController’ bean method

是因为两个请求,请求到同一个地址上,代码分不清楚需要往哪个接口上跳转.所以才会出现这样的异常