- <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
- <property name="mapperLocations">
- <array>
- <value>
- classpath:mybatis/mapper/*.xml
- </value>
- <value>
- classpath:mybatis/mapper/database/*.xml
- </value>
- </array>
- </property>
- <property name="dataSource" ref="dataSource" />
- <property name="configLocation" value="classpath:mybatis/config/mybatis-config.xml"
- />
- </bean>
来源: http://www.bubuko.com/infodetail-1989655.html