Spring-Mybatis整合
主要是配置bean 和DI 各种属性
用了Junit单元测试, spring-test 和spring 的框架 两个版本其实一致就行
Mybatis-config.xml 基本什么也不用配置
加载多个properties
配置连接池 使用阿里爸爸的 druid连接池
配置 SQLSessionFactory
需要给其注入连接池 , Mybatis的配置文件 , mapper.xml文件位置
Mapper扫描器
SQLSessionFactoryBeanNaem 有没有都行, 目前还不知道原理,
相应代码在github上
https://github.com/zhang570221322/AllTest.git