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

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

spring+hibernate+jbpm整合成功

2019-11-18 15:28:05
字體:
來源:轉載
供稿:網友

終于搞定了,在此感謝chenjin的指點。

從10.31日整合失敗后,這塊就一直是我的心病,我甚至都跑去了http://www.sPRingframework.org/去發了一個帖,這還是我第一次用英文問問題呢。

最后的配置結果是:

hibernate.cfg.xml、jbpm.cfg.xml在關聯spring后保持不變,只需要更改spirng的配置文件就好了。


spring+hibernate+jbpm整合成功<?xml version="1.0" encoding="UTF-8"?>
spring+hibernate+jbpm整合成功<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
spring+hibernate+jbpm整合成功"http://www.springframework.org/dtd/spring-beans.dtd">
spring+hibernate+jbpm整合成功<beans>
spring+hibernate+jbpm整合成功    <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
spring+hibernate+jbpm整合成功        <property name="driverClassName">
spring+hibernate+jbpm整合成功            <value>com.MySQL.jdbc.Driver</value>
spring+hibernate+jbpm整合成功        </property>
spring+hibernate+jbpm整合成功        <property name="url">
spring+hibernate+jbpm整合成功            <value>jdbc:mysql://localhost:3306/test</value>
spring+hibernate+jbpm整合成功        </property>
spring+hibernate+jbpm整合成功        <property name="username">
spring+hibernate+jbpm整合成功            <value>root</value>
spring+hibernate+jbpm整合成功        </property>
spring+hibernate+jbpm整合成功        <property name="passWord">
spring+hibernate+jbpm整合成功            <value/>
spring+hibernate+jbpm整合成功        </property>
spring+hibernate+jbpm整合成功    </bean>
spring+hibernate+jbpm整合成功    <!-- Hibernate sessionFactory -->
spring+hibernate+jbpm整合成功    <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
spring+hibernate+jbpm整合成功        <property name="dataSource">
spring+hibernate+jbpm整合成功            <ref local="dataSource"/>
spring+hibernate+jbpm整合成功        </property>
spring+hibernate+jbpm整合成功        <property name="mappingLocations">  
spring+hibernate+jbpm整合成功           <value>classpath*:/org/jbpm/**/*.hbm.xml</value>  
spring+hibernate+jbpm整合成功           </property>
spring+hibernate+jbpm整合成功        <property name="hibernateProperties">  
spring+hibernate+jbpm整合成功           <props>  
spring+hibernate+jbpm整合成功               <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
spring+hibernate+jbpm整合成功               <prop key="hibernate.hbm2ddl.auto">update</prop>
spring+hibernate+jbpm整合成功               <prop key="hibernate.jdbc.batch_size">0</prop>
spring+hibernate+jbpm整合成功           </props>
spring+hibernate+jbpm整合成功       </property> 
spring+hibernate+jbpm整合成功    </bean>
spring+hibernate+jbpm整合成功    <!-- Transaction manager for a single Hibernate SessionFactory (alternative to JTA) -->
spring+hibernate+jbpm整合成功    <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
spring+hibernate+jbpm整合成功        <property name="sessionFactory">
spring+hibernate+jbpm整合成功            <ref local="sessionFactory"/>
spring+hibernate+jbpm整合成功        </property>
spring+hibernate+jbpm整合成功    </bean>
spring+hibernate+jbpm整合成功    
spring+hibernate+jbpm整合成功    <!-- reading jBPM process definitions -->
spring+hibernate+jbpm整合成功    <bean id="websaleWorkflow1" class="org.springmodules.workflow.jbpm31.definition.ProcessDefinitionFactoryBean">
spring+hibernate+jbpm整合成功        <property name="definitionLocation"    value="processdefinition.xml"/>
spring+hibernate+jbpm整合成功    </bean>
spring+hibernate+jbpm整合成功    <!-- jBPM configuration--> 
spring+hibernate+jbpm整合成功    <bean id="jbpmConfiguration" class="org.springmodules.workflow.jbpm31.LocalJbpmConfigurationFactoryBean">
spring+hibernate+jbpm整合成功        <property name="sessionFactory" ref="sessionFactory"/>
spring+hibernate+jbpm整合成功        <property name="configuration" value="jbpm.cfg.xml"/>
spring+hibernate+jbpm整合成功        <property name="processDefinitions">
spring+hibernate+jbpm整合成功            <list>
spring+hibernate+jbpm整合成功                <ref local="websaleWorkflow1"/>
spring+hibernate+jbpm整合成功            </list>
spring+hibernate+jbpm整合成功        </property>
spring+hibernate+jbpm整合成功        <property name="createSchema" value="true"/>
spring+hibernate+jbpm整合成功    </bean>
spring+hibernate+jbpm整合成功    <!-- jBPM template -->
spring+hibernate+jbpm整合成功    <bean id="jbpmTemplate" class="org.springmodules.workflow.jbpm31.JbpmTemplate">
spring+hibernate+jbpm整合成功        <constrUCtor-arg index="0" ref="jbpmConfiguration"/>
spring+hibernate+jbpm整合成功        <constructor-arg index="1" ref="websaleWorkflow1"/>
spring+hibernate+jbpm整合成功    </bean>
spring+hibernate+jbpm整合成功
spring+hibernate+jbpm整合成功</beans>
spring+hibernate+jbpm整合成功



發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 日喀则市| 博乐市| 榆林市| 绍兴县| 陆河县| 芦山县| 河南省| 阿坝县| 榆树市| 虞城县| 酉阳| 临汾市| 搜索| 新竹县| 台东县| 永清县| 长阳| 贵阳市| 姚安县| 浦东新区| 美姑县| 扎赉特旗| 增城市| 开阳县| 雅安市| 华蓥市| 新营市| 泾川县| 滦南县| 青浦区| 奎屯市| 丹寨县| 鄢陵县| 容城县| 同仁县| 平原县| 平原县| 惠州市| 荣成市| 绿春县| 万山特区|