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



發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 襄樊市| 万盛区| 韩城市| 许昌县| 虞城县| 霞浦县| 广东省| 义乌市| 利川市| 灵武市| 汉中市| 洱源县| 佛坪县| 通山县| 长汀县| 汾阳市| 平罗县| 沂南县| 吉水县| 镶黄旗| 衡水市| 娱乐| 崇信县| 滕州市| 资阳市| 湖口县| 叶城县| 胶州市| 彭阳县| 黔南| 巴彦县| 姜堰市| 丹棱县| 苏州市| 英山县| 阿拉善右旗| 永善县| 大连市| 沅江市| 手机| 太原市|