Spring整合Mybatis 正常使用mybatis:数据源 -->获取连接池-->会话工厂-->使用mapper进行 增删改查操作。 Spring整合mybatis 其实就是 1 由Spring 来统一管理 数据源: 2 由Spring 来管理 sqlsession