business-system.xml 2.31 KB
Newer Older
罗绍泽 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
<?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>