<?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-process" class="org.mybatis.spring.SqlSessionFactoryBean"> <property name="dataSource" ref="dataSource-business" /> <property name="configLocation" value="/WEB-INF/conf/gaowj/bl/mybatis-config.xml" /> <property name="mapperLocations"> <list> <value>classpath:com/gaowj/business/formtable/formtableDAO.xml</value> <value>classpath:com/gaowj/business/procdefinition/procdefinitionDAO.xml</value> <value>classpath:com/gaowj/business/procdefinitionmodels/procdefinitionmodelsDAO.xml</value> <value>classpath:com/gaowj/business/formfield/formfieldDAO.xml</value> <value>classpath:com/gaowj/business/formmodels/formmodelsDAO.xml</value> <value>classpath:com/gaowj/business/procdefinitionInitlink/procdefinitionInitlinkDAO.xml</value> <value>classpath:com/gaowj/business/procinstance/procinstanceDAO.xml</value> <value>classpath:com/gaowj/business/procdefiChooseUser/procdefiChooseUserDAO.xml</value> <value>classpath:com/gaowj/business/procdefiChooseDept/procdefiChooseDeptDAO.xml</value> </list> </property> </bean> <!-- DAO定义开始 --> <bean id="formtableDAO" class="org.mybatis.spring.mapper.MapperFactoryBean"> <property name="mapperInterface" value="com.gaowj.business.formtable.formtableDAO" /> <property name="sqlSessionFactory" ref="sqlSessionFactory-process" /> </bean> <bean id="formmodelsDAO" class="org.mybatis.spring.mapper.MapperFactoryBean"> <property name="mapperInterface" value="com.gaowj.business.formmodels.formmodelsDAO" /> <property name="sqlSessionFactory" ref="sqlSessionFactory-process" /> </bean> <bean id="procdefinitionDAO" class="org.mybatis.spring.mapper.MapperFactoryBean"> <property name="mapperInterface" value="com.gaowj.business.procdefinition.procdefinitionDAO" /> <property name="sqlSessionFactory" ref="sqlSessionFactory-process" /> </bean> <bean id="procdefinitionmodelsDAO" class="org.mybatis.spring.mapper.MapperFactoryBean"> <property name="mapperInterface" value="com.gaowj.business.procdefinitionmodels.procdefinitionmodelsDAO" /> <property name="sqlSessionFactory" ref="sqlSessionFactory-process" /> </bean> <bean id="procdefinitionInitlinkDAO" class="org.mybatis.spring.mapper.MapperFactoryBean"> <property name="mapperInterface" value="com.gaowj.business.procdefinitionInitlink.procdefinitionInitlinkDAO" /> <property name="sqlSessionFactory" ref="sqlSessionFactory-process" /> </bean> <bean id="procinstanceDAO" class="org.mybatis.spring.mapper.MapperFactoryBean"> <property name="mapperInterface" value="com.gaowj.business.procinstance.procinstanceDAO" /> <property name="sqlSessionFactory" ref="sqlSessionFactory-process" /> </bean> <bean id="procdefiChooseUserDAO" class="org.mybatis.spring.mapper.MapperFactoryBean"> <property name="mapperInterface" value="com.gaowj.business.procdefiChooseUser.procdefiChooseUserDAO" /> <property name="sqlSessionFactory" ref="sqlSessionFactory-process" /> </bean> <bean id="procdefiChooseDeptDAO" class="org.mybatis.spring.mapper.MapperFactoryBean"> <property name="mapperInterface" value="com.gaowj.business.procdefiChooseDept.procdefiChooseDeptDAO" /> <property name="sqlSessionFactory" ref="sqlSessionFactory-process" /> </bean> <bean id="formfieldDAO" class="org.mybatis.spring.mapper.MapperFactoryBean"> <property name="mapperInterface" value="com.gaowj.business.formfield.formfieldDAO" /> <property name="sqlSessionFactory" ref="sqlSessionFactory-process" /> </bean> <!-- DAO定义结束 --> <bean id="FormtableBusiness" class="com.gaowj.business.formtable.FormtableBusinessImpl"> <property name="formtableDAO" ref="formtableDAO"></property> </bean> <bean id="FormmodelsBusiness" class="com.gaowj.business.formmodels.FormmodelsBusinessImpl"> <property name="formmodelsDAO" ref="formmodelsDAO"></property> </bean> <bean id="procdefinitionBusiness" class="com.gaowj.business.procdefinition.ProcdefinitionBusinessImpl"> <property name="procdefinitionDAO" ref="procdefinitionDAO"></property> <property name="formmodelsDAO" ref="formmodelsDAO"></property> <property name="formfieldDAO" ref="formfieldDAO"></property> <property name="repositoryService" ref="repositoryService"></property> <property name="procdefinitionInitlinkDAO" ref="procdefinitionInitlinkDAO"></property> </bean> <bean id="procdefinitionmodelsBusiness" class="com.gaowj.business.procdefinitionmodels.ProcdefinitionmodelsBusinessImpl"> <property name="procdefinitionmodelsDAO" ref="procdefinitionmodelsDAO"></property> <property name="procdefinitionDAO" ref="procdefinitionDAO"></property> <property name="repositoryService" ref="repositoryService"></property> <property name="managementService" ref="managementService"></property> </bean> <bean id="FormfieldBusiness" class="com.gaowj.business.formfield.FormfieldBusinessImpl"> <property name="formfieldDAO" ref="formfieldDAO"></property> </bean> <bean id="ProcinstanceBusiness" class="com.gaowj.business.procinstance.ProcinstanceBusinessImpl"> <property name="runtimeService" ref="runtimeService"></property> <property name="procdefinitionDAO" ref="procdefinitionDAO"></property> <property name="formtableDAO" ref="formtableDAO"></property> <property name="procinstanceDAO" ref="procinstanceDAO"></property> <property name="taskService" ref="taskService"></property> <property name="historyService" ref="historyService"></property> <property name="repositoryService" ref="repositoryService"></property> <property name="systemBackDAO" ref="systemBackDAO"></property> </bean> <bean id="ProcdefinitionInitLinkBusiness" class="com.gaowj.business.procdefinitionInitlink.ProcdefinitionInitLinkBusinessImpl"> <property name="procdefinitionInitlinkDAO" ref="procdefinitionInitlinkDAO"></property> <property name="repositoryService" ref="repositoryService"></property> </bean> <bean id="ProcdefiChooseUserBusiness" class="com.gaowj.business.procdefiChooseUser.ProcdefiChooseUserBusinessImpl"> <property name="procdefiChooseUserDAO" ref="procdefiChooseUserDAO"></property> </bean> <bean id="ProcdefiChooseDeptBusiness" class="com.gaowj.business.procdefiChooseDept.ProcdefiChooseDeptBusinessImpl"> <property name="procdefiChooseDeptDAO" ref="procdefiChooseDeptDAO"></property> </bean> <bean id="ProctaskBusiness" class="com.gaowj.business.proctask.ProctaskBusinessImpl"> <property name="taskService" ref="taskService"></property> <property name="runtimeService" ref="runtimeService"></property> <property name="procinstanceDAO" ref="procinstanceDAO"></property> <property name="formmodelsDAO" ref="formmodelsDAO"></property> <property name="procdefinitionDAO" ref="procdefinitionDAO"></property> <property name="historyService" ref="historyService"></property> <property name="repositoryService" ref="repositoryService"></property> <property name="formtableDAO" ref="formtableDAO"></property> </bean> </beans>