Mapped Statements collection already contains value for xxx
程序员文章站
2022-07-15 12:40:54
...
意思是这个sql绑定了一个ResultMap了,不要重复绑定。
太奇葩了
<select id="getByUserName" parameterType="String" resultMap="BloggerResult">
select *
from t_blogger
where userName=#{userName}
</select>
<!-- <select id="getByUserName" parameterType="String" resultMap="BloggerResult">-->
<!-- select *-->
<!-- from t_blogger-->
<!-- where userName=#{userName}-->
<!-- </select>-->
我的mapper.xml不知道啥时候多了一模一样的查询语句。
推荐阅读
-
使用mybatis报错【Result Maps collection already contains value for ...BaseResultMap】的解决方法
-
moven 部署Sping与mybatis时,Mapped Statements collection does not contain value for Xxxxxxxx
-
【Bug解决】org.apache.ibatis.type.TypeException: The alias ‘xxxx‘ is already mapped to the value ‘xxx‘
-
java.lang.IllegalArgumentException: Result Maps collection already contains value for
-
Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for ...
-
java.lang.IllegalArgumentException: Result Maps collection already contains value for
-
Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for.....
-
解决:Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for xxx
-
Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for……
-
java.lang.IllegalArgumentException: Result Maps collection already contains value for ...