国产探花免费观看_亚洲丰满少妇自慰呻吟_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>

 


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 嘉义市| 兴海县| 开封市| 邵武市| 莱西市| 金乡县| 克拉玛依市| 东平县| 修水县| 滨海县| 大兴区| 炎陵县| 平乡县| 许昌县| 平罗县| 松江区| 四会市| 大邑县| 丽江市| 龙门县| 拜城县| 遵化市| 绥棱县| 富裕县| 临武县| 镇平县| 讷河市| 英山县| 昭苏县| 襄城县| 永兴县| 聂拉木县| 霍林郭勒市| 嘉禾县| 黄石市| 桐庐县| 古浪县| 惠东县| 万山特区| 安新县| 周口市|