Result Maps collection already contains value for com.example.dao.BillMapper.BaseResultMap
时间: 2024-02-13 21:40:06 浏览: 105
根据引用,报错信息"BaseResultMap在UsertableMapper.xml文件里已经出现过了"表示在Result Maps集合中已经存在了名为"com.example.dao.BillMapper.BaseResultMap"的值。
根据引用,这种错误的原因可能有多个同名的XXXMapper.xml文件,存在多个重复定义的方法名,或者重复加载同一个XXXMapper.xml文件。解决这个问题的方法可以是先删除之前的文件,或者找出重复片段并删除掉。
因此,要解决这个问题,可以按照引用中的方法,先删除之前的文件或找出重复片段并删除,以确保Result Maps集合中不会出现重复的值。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [关于Result Maps collection already contains value for...的报错问题](https://blog.csdn.net/weixin_44217612/article/details/99876134)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Result Maps collection already contains value for xxxMapper.xxx](https://blog.csdn.net/liaoyoujinb/article/details/127571305)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文