Java—Ambiguousmapping.Cannotmap”***Controller”beenmethod解決辦法

必須往前走發表於2017-12-19
開啟網頁報錯:
Ambiguous mapping. Cannot map `handController` method 
public com.smallchill.core.toolbox.ajax.AjaxResult com.smallchill.smtlamp.controller.HandController.AC2off(java.lang.String)
to {[/hand/AC1off]}: There is already `handController` bean method
public com.smallchill.core.toolbox.ajax.AjaxResult com.smallchill.smtlamp.controller.HandController.AC1off(java.lang.String) mapped.
 
解決辦法:

@RequestMapping()中的url重複了,修改為不同的url即可;


相關文章