最基本的配置如下: 1.mybatis配置文件 2.数据源 3.pojo包扫描 4.mapper包扫描 5.mapper接口扫描 转载于:https://www.cnblogs.com/Mr-Brown/p/10670443.html