首页 > 代码库 > myBatis出现Mapped Statements collection already contains value for

myBatis出现Mapped Statements collection already contains value for

造成这个问题的原因很多,我遇到的主要是因为

<select id="queryCountfor****"

parameterType="java.lang.Integer" resultType="java.lang.Integer">

select blabla....

</select>

 

这里的

parameterType="java.lang.Integer" resultType="java.lang.Integer">

被我写错了,因为是copy过来的,忘记了改变参数为

parameterType="map" resultMap="BaseResultMap"

 

myBatis出现Mapped Statements collection already contains value for