Mybits启动时,抛出异常,异常信息:Result Maps collection already contains value for com.huaxia.xxx.xx.BaseResultMap
解决方式:搜索该映射类中是否有重名的映射标签,如:
<update id="updateByPrimaryKey" parameterType="com.huaxia.ecmFile.file.model.AliyunToken"> update token set at_del = #{atDel,jdbcType=INTEGER} where at_page_id = #{atPageId,jdbcType=INTEGER} </update> <update id="updateByPrimaryKey" parameterType="com.huaxia.ecmFile.file.model.AliyunToken"> update token set at_del = #{atDel,jdbcType=INTEGER} where at_page_id = #{atPageId,jdbcType=INTEGER} </update>
此时,删掉一个或者重命名一个,即可处理该错误,还有一个原因可能是标签获取值的属性名写错,写成字段名了。