mapper is ignored, because it exists, maybe from xml file
时间: 2024-05-16 21:19:11 浏览: 239
"mapper is ignored, because it exists, maybe from xml file"这个报错信息的意思是,当MyBatisPlus启动时,发现某个映射器已经存在,可能是来自于XML文件。这个报错信息出现的原因是在加载SQL语句时的顺序问题。MyBatisPlus首先会加载XML中的SQL语句,然后加载SqlProvider中的SQL语句,但是XML中的SQL语句和SqlProvider中的SQL语句不能包含相同的内容。如果已经加载了XML中的节点,那么就会忽略掉映射器中的SqlProvider数据,并报出这个错误信息。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [java 项目在 idea 中可正常启动,但在启动时 日志信息中 ERROR 相关信息...mapper[xxx] is ignored, because](https://blog.csdn.net/YHLSunshine/article/details/128820838)[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_2"}}] [.reference_item style="max-width: 50%"]
- *3* [为什么springboot中的mapper层方法不能... mapper[xxx] is ignored, because it exists, maybe from xml file](https://blog.csdn.net/weixin_44307338/article/details/130059373)[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_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文