Ambiguous mapping. Cannot map "***Controller" been method解决办法

来源:互联网 发布:ubuntu怎样新建文件夹 编辑:程序博客网 时间:2024/05/22 07:04
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即可;
阅读全文
0 0