mybatisplus的xml配置文件
时间: 2023-09-27 17:09:23 浏览: 96
MybatisPlus,无XML分分钟实现CRUD操作
5星 · 资源好评率100%
MybatisPlus的XML配置文件可以通过在Spring Boot的application.yml文件中添加mapper-locations来指定。例如,可以将XML配置文件放在classpath:mapper/目录下,并在application.yml中配置如下:
mybatis-plus:
mapper-locations: classpath:mapper/*Mapper.xml
这样配置后,MybatisPlus会自动扫描指定目录下的XML文件并进行配置。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [MybatisPlus代码生成器](https://download.csdn.net/download/liu918458630/87612684)[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%"]
- *2* *3* [mybatisplus配置详解](https://blog.csdn.net/m0_62520968/article/details/124754409)[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 ]
阅读全文