spring-mybatis.xml配置文件
<!-- spring和MyBatis完美整合,不需要mybatis的配置映射文件 -->
<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<!-- 自动扫描mapping.xml文件 */*/* =》系统/模块/xxxMapper-->
<property name="mapperLocations" value="classpath:com/chaofan/www/dao/mapping/*.xml"/>
<property name="configurationProperties">
<props>
<!-- 这个配置使全局的映射器启用或禁用缓存 -->
s