mybatis中mapper namespace
时间: 2023-11-19 22:06:59 浏览: 98
在Mybatis中,mapper namespace是指mapper接口的全类名。namespace用于实现语句与接口的绑定,通过生成mapper接口的代理对象来替代DAO层的设计。如果采用面向接口的编程方式,namespace必须为mapper接口的全类名对象。这样可以确保可以通过namespace来调用对应的mapper接口方法。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [mybatis中的namespace及mapper](https://blog.csdn.net/biliangliang/article/details/84034262)[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* [关于mybatis 的mapper namespace 作用及解析](https://blog.csdn.net/diaoli3214/article/details/101243167)[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 ]
阅读全文