转载:https://blog.csdn.net/ningyq_/article/details/109328178
出现Mapped Statements collection already contains value for 的报错
错误原因可能性:
1、mapper中存在id重复的值。
2、mapper中的parameterType或resultType为空。
3、在使用@Select等注解的情况下,方法名即为mapper的id,重载的方法会报这个错。
4、mapper复制 忘了改namespace指向的类,所以两个mapper指向同一个mapper,所以报了这个错。
5、出现 @Select@Update等注解,可能是maven管理的mybatis.jar需要重新引入,原来的冲突了,或者注释掉这些注解