天天看點

java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'specificationController' method

SSM 修改 Service 包下方法, 報錯 :

" Caused by: java.lang.IllegalStateException: Ambiguous mapping. Cannot map ‘specificationController’ method "

報錯提示說的很明白嘛: 引起原因:java.lang.IllegalStateException:模棱兩可的映射。 無法映射“ specificationController”方法

java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'specificationController' method

問題在于 : controller層的方法指定了兩個相同的路徑

解決 : 檢查下 controller 層, 異常所在的方法是否路徑配置重複. 修改即可.

java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'specificationController' method