国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

Java_Activiti5_菜鳥也來學Activiti5工作流_之與Spring集成(三)

2019-11-14 15:42:08
字體:
來源:轉載
供稿:網友
 1 <?xml version="1.0" encoding="UTF-8"?> 2 <beans xmlns="http://www.s 3     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 4     xmlns:context="http://www.springframework.org/schema/context" 5     xmlns:tx="http://www.springframework.org/schema/tx" 6     xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd 7         http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd 8         http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd"> 9     10     <!-- 配置數據源 -->11     <bean id="dataSource" class="org.springframework.jdbc.datasource.SimpleDriverDataSource">12         <property name="driverClass" value="com.MySQL.jdbc.Driver"/>13         <property name="url" value="jdbc:mysql://localhost:3306/db_activiti?useUnicode=true&amp;characterEncoding=utf-8"/>14         <property name="username" value="root"/>15         <property name="passWord" value="root"/>16     </bean>17 18     <!-- 配置數據源事務管理器 -->19     <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">20         <property name="dataSource" ref="dataSource"/> <!-- 引用上面的數據源 -->21     </bean>22     23     <!-- 配置流程引擎配置類 注意:這是用 org.activiti.spring.SpringProcessEngineConfiguration 這個類-->24     <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">25         <property name="dataSource" ref="dataSource"/>26         <property name="transactionManager" ref="transactionManager" />27         <property name="databaseSchemaUpdate" value="true" />28         <property name="jobExecutorActivate" value="false" />29         <property name="createDiagramOnDeploy" value="false" /> <!-- 是否生成流程定義圖片 -->30     </bean>31     32     <!-- 配置流程引擎工廠 -->33     <bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">34         <property name="processEngineConfiguration" ref="processEngineConfiguration" />35     </bean>36     37     <!-- 配置注入一些服務 -->38     <bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService"/>39     <bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService"/>40     <bean id="taskService" factory-bean="processEngine" factory-method="getTaskService" />41     <bean id="historyService" factory-bean="processEngine" factory-method="getHistoryService" />42     <bean id="managementService" factory-bean="processEngine" factory-method="getManagementService" />43     44     <!-- 配置activiti的規則 -->45     <bean id="activitiRule" class="org.activiti.engine.test.ActivitiRule">46         <property name="processEngine" ref="processEngine" />47     </bean>48     49 </beans>

 


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 靖宇县| 金门县| 河池市| 分宜县| 闽清县| 邢台市| 姚安县| 红桥区| 繁峙县| 新巴尔虎左旗| 鹤山市| 那曲县| 平果县| 嘉鱼县| 淅川县| 顺平县| 汝城县| 河西区| 襄樊市| 攀枝花市| 即墨市| 高平市| 珠海市| 六盘水市| 惠来县| 巴楚县| 思南县| 丹江口市| 宝鸡市| 蒙山县| 汪清县| 合川市| 延津县| 吉木萨尔县| 赤峰市| 文成县| 加查县| 溆浦县| 寻乌县| 莱阳市| 尚志市|