<!-- 扫描mapper -->
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
<property name="annotationClass" value="org.springframework.stereotype.Repository"/>
<property name="basePackage" value="com.warsoure.framework.dao.*.*mapper"/>
<!-- <property name="sqlSessionFactoryBeanName" ref="sqlSessionFactory"/> 报错-->
</bean>
注解<property name="sqlSessionFactoryBeanName" ref="sqlSessionFactory"/>
并将版本提升mybatis-3.2.8.jar,mybatis-spring-1.2.2.jar