java.lang.IllegalArgumentException: findUserById is ambiguous in Mapped Statements collection

来源:互联网 发布:java微信接口开发 编辑:程序博客网 时间:2024/06/09 17:35

异常:

java.lang.IllegalArgumentException: findUserById is ambiguous in Mapped Statements collection (findUserById在Mapped Statements集合中不明确(尝试使用包括名称空间的全名或重命名其中一个条目))


解决办法:只需要将id="findUserById"改为id="findUserByIds"

<mapper namespace="test"><select id="findUserById" parameterType="Integer"


<mapper namespace="test"><select id="findUserByIds" parameterType="Integer" 

OK 了
阅读全文
0 0