<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
<property name="configLocation" value="classpath:mybatis.xml" />
<property name="dataSource" ref="dataSource" />
<property name="mapperLocations">
<value>classpath*:mapping/*.xml</value>
</property>
</bean>
将你的mapping文件夹添加到spring配置文件中即可