is ambiguous in Mapped Statements collection

Error querying database.  Cause: Java.lang.IllegalArgumentException:XXX is ambiguous in Mapped Statements collection (try using the full name including the namespace, or rename one of the entries)

原因:

1.

mapper的namespace是否拼写正确;名称不能少Mapper,路径必须正确。

2.项目中是否存在两个相同的mapper或者mapper里面的方法名。

例如: