<!-- 扫描文件(自动将dao层注入) -
<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean"
p:dataSource-ref="dataSource" p:configLocation="classpath:mybatis-config.xml" p:mapperLocations="classpath:mapper/*Mapper.xml" />
<!-- configLocation为mybatis配置文件; mapperLocations为所有mapper映射文件,若mybatis配置文件中已经添加mapper映射文件,mapperLocations无需再配,否则报错。
p:mapperLocations="classpath:mapper/*Mapper.xml"
-->