最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Springboot集成Camunda使用Mysql介紹

 更新時(shí)間:2021年12月28日 10:09:08   作者:LoneWalker、  
大家好,本篇文章主要講的是Springboot集成Camunda使用Mysql介紹,感興趣的同學(xué)趕快來看一看吧,對你有幫助的話記得收藏一下,方便下次瀏覽

一、匹配版本

基于Camunda 7.16.0 + Springboot 2.5.8

首先我們?nèi)ス倬W(wǎng)找到camunda7.16對應(yīng)的springboot版本。camunda官網(wǎng)

使用camunda流程引擎、web界面、Rest服務(wù)接口相應(yīng)依賴如下:

流程引擎:camunda-bpm-spring-boot-starterRest服務(wù)接口:camunda-bpm-spring-boot-starter-restweb界面模塊:camunda-bpm-spring-boot-starter-webapp

<dependency>
    <groupId>org.camunda.bpm.springboot</groupId>
    <artifactId>camunda-bpm-spring-boot-starter</artifactId>
    <version>7.16.0</version>
</dependency>
<dependency>
    <groupId>org.camunda.bpm.springboot</groupId>
    <artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
    <version>7.16.0</version>
</dependency>
<dependency>
    <groupId>org.camunda.bpm.springboot</groupId>
    <artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
    <version>7.16.0</version>
</dependency>

二、相關(guān)配置

首先新建一個(gè)數(shù)據(jù)庫

?再新建一個(gè)Springboot項(xiàng)目,引入相關(guān)的場景啟動(dòng)器

        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <scope>runtime</scope>
        </dependency>        
        <dependency>
            <groupId>org.camunda.bpm.springboot</groupId>
            <artifactId>camunda-bpm-spring-boot-starter</artifactId>
            <version>7.16.0</version>
        </dependency>
        <dependency>
            <groupId>org.mybatis.spring.boot</groupId>
            <artifactId>mybatis-spring-boot-starter</artifactId>
            <version>2.1.3</version>
        </dependency>

新建application.yml文件【注意修改數(shù)據(jù)庫名,數(shù)據(jù)庫用戶名和密碼等值

spring:
  datasource:
    url: jdbc:mysql://127.0.0.1:3306/snail?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false
    driver-class-name: com.mysql.cj.jdbc.Driver
    username: root
    password: 1234
  application:
    name: snail-workflow
 
camunda.bpm:
  # 配置賬戶密碼來訪問Camunda自帶的管理界面
  admin-user:
    id: demo
    password: demo
    firstName: Demo
  filter:
    create: All tasks
  #禁止自動(dòng)部署resources下面的bpmn文件
  auto-deployment-enabled: false
  #禁止index跳轉(zhuǎn)到Camunda自帶的管理界面,默認(rèn)true
  #    webapp:
  #      index-redirect-enabled: false

直接啟動(dòng)項(xiàng)目后,就可以看到數(shù)據(jù)庫已經(jīng)生成了49張表

ACT_RE_*:RE代表存repository。帶有此前綴的表包含“靜態(tài)”信息,例如流程定義和流程資源(圖像、規(guī)則等)。

ACT_RU_*:RU代表runtime。這些是運(yùn)行時(shí)表,包含流程實(shí)例、用戶任務(wù)、變量、作業(yè)等的運(yùn)行時(shí)數(shù)據(jù)。引擎僅在流程實(shí)例執(zhí)行期間存儲運(yùn)行時(shí)數(shù)據(jù),并在流程實(shí)例結(jié)束時(shí)刪除記錄。這使運(yùn)行時(shí)表既小又快。

ACT_ID_*:ID代表identity。這些表包含身份信息,例如用戶、組等。

ACT_HI_*:HI代表history。這些是包含歷史數(shù)據(jù)的表,例如過去的流程實(shí)例、變量、任務(wù)等。

ACT_GE_*:GE代表 general一般數(shù)據(jù),用于各種用例

總結(jié)

到此這篇關(guān)于Springboot集成Camunda使用Mysql介紹的文章就介紹到這了,更多相關(guān)Springboot集成Camunda內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

最新評論

定日县| 海门市| 依安县| 祁门县| 华容县| 禹城市| 德庆县| 扎囊县| 沙河市| 北宁市| 鄂伦春自治旗| 闽清县| 临澧县| 八宿县| 阿勒泰市| 神池县| 宜兰县| 崇文区| 虎林市| 报价| 松江区| 望奎县| 阜康市| 和平区| 九龙坡区| 定南县| 陇西县| 襄樊市| 晋州市| 临沂市| 静海县| 萍乡市| 镇坪县| 樟树市| 马山县| 西乌珠穆沁旗| 松阳县| 沅江市| 拉萨市| 读书| 宁化县|