<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <bean id="sqlSessionFactory-system" class="org.mybatis.spring.SqlSessionFactoryBean"> <property name="dataSource" ref="dataSource-system" /> <property name="configLocation" value="/WEB-INF/conf/gaowj/bl/mybatis-config.xml" /> <property name="mapperLocations"> <list> <value>classpath:com/gaowj/business/system/SystemBackDAO.xml</value> <value>classpath:com/gaowj/business/uploadfile/uploadfileDAO.xml</value> <value>classpath:com/jw/app/business/group/GroupDAO.xml</value> </list> </property> </bean> <bean id="systemSession" class="org.mybatis.spring.SqlSessionTemplate"> <constructor-arg index="0" ref="sqlSessionFactory-system"/> </bean> <bean id="systemOpeBusiness" class="com.gaowj.business.system.SystemOpeBusinessImpl"> <property name="systemBackDAO" ref="systemBackDAO"/> <property name="systemSession" ref="systemSession"/> </bean> <bean id="systemBackDAO" class="org.mybatis.spring.mapper.MapperFactoryBean"> <property name="mapperInterface" value="com.gaowj.business.system.SystemBackDAO"/> <property name="sqlSessionFactory" ref="sqlSessionFactory-system"/> </bean> <bean id="SystemCacheBusiness" class="com.gaowj.business.cache.SystemCacheBusinessImpl"> <property name="cacheManager" ref="cacheManager" /> </bean> <bean id="cacheKit" class="com.gaowj.standard.utils.CacheKit"> <property name="cacheManager" ref="cacheManager" /> </bean> <bean id="UploadfileBusiness" class="com.gaowj.business.uploadfile.UploadfileBusinessImpl"> <property name="uploadfileDAO"> <bean class="org.mybatis.spring.mapper.MapperFactoryBean"> <property name="mapperInterface" value="com.gaowj.business.uploadfile.uploadfileDAO" /> <property name="sqlSessionFactory" ref="sqlSessionFactory-system" /> </bean> </property> </bean> <bean id="GroupBusiness" class="com.jw.app.business.group.GroupBusinessImpl"> <property name="groupDAO"> <bean class="org.mybatis.spring.mapper.MapperFactoryBean"> <property name="mapperInterface" value="com.jw.app.business.group.GroupDAO"/> <property name="sqlSessionFactory" ref="sqlSessionFactory-system"/> </bean> </property> </bean> </beans>