Spring整合activiti配置processEngine

配置xml数据时,可以直接在配置文件中填写,也可以采用properties配置文件的方式加载。

采用配置文件的方式需要使用到${参数}的方式获取。

引用配置文件的方式:<context:property-placeholder location="classpath:properties文件目录" />

applicationContaxt.xml配置信息如下所示:

<context:property-placeholder location="classpath:xxxxx.properties" />




cn/xxxx/xxxxx/xx.hbm.xml




${hibernate.dialect}
${hibernate.show_sql}
true
false
50
${cache.use_second_level_cache}
${hibernate.cache.use_query_cache}
org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory
none

org.springframework.orm.hibernate5.SpringSessionContext
org.hibernate.transaction.JDBCTransactionFactory


                                                                                                                              



<tx:advice id="txAdvice" transaction-manager="txManager">
         tx:attributes
             <tx:method name="*_trans" propagation="REQUIRED" />
             <tx:method name="*" propagation="NEVER" read-only="true"/>
         
   
<aop:config proxy-target-class="true">

         
         <aop:pointcut expression="execution(* cn.xxxx.dao.*.*(..)) or 
          execution(* xxx.yyy.zzzz.*.*(..))" id="pointcut"/>
         <aop:advisor advice-ref="txAdvice" pointcut-ref="pointcut"/>
           

       

评论

暂无评论