> For the complete documentation index, see [llms.txt](https://book.rizon.top/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.rizon.top/springboot/springboot-pei-zhi-mybatis.md).

# spring boot 配置mybatis

## 单数据源的简单配置

可以直接配置数据库

## 多数据源的配置

多个数据源需要写配置类，通过包路径指定不同的数据源
