81,095
社区成员
发帖
与我相关
我的任务
分享
<!-- 单个映射走这种方式 直接把 testDao用ref或者autoWire By name 方式注入其它Bean -->
<bean id="testDao" class="org.mybatis.spring.mapper.MapperFactoryBean">
<property name="mapperInterface" value="com.platform.dbproject.system.mapper.TestDao"></property>
<property name="sqlSessionFactory" ref="sqlSessionFactory"></property>
</bean>