日本不卡不码高清免费观看,久久国产精品久久w女人spa,黄色aa久久,三上悠亚国产精品一区二区三区

您的位置:首頁技術文章
文章詳情頁

Springboot整合camunda+mysql的集成流程分析

瀏覽:39日期:2023-02-05 15:36:30
目錄一、創建springboot工程二、修改maven配置2.1、修改springboot版本號2.2、引入camunda包三、修改application.yaml配置四、創建mysql數據庫五、啟動springboot工程六、登錄訪問camunda一、創建springboot工程

使用IDEA工具,選擇File->New->Project,選擇Spring Initialzr

Springboot整合camunda+mysql的集成流程分析

輸入springboot工程基本信息,本示例命名為“camunda-demo1”, jdk版本選擇8

Springboot整合camunda+mysql的集成流程分析

在選擇springboot組件的時候,需要選擇Spring Web、JDBC API、MySql Driver 這三個組件。點擊下一步完成即可。

Springboot整合camunda+mysql的集成流程分析

二、修改maven配置2.1、修改springboot版本號

由于camunda版本與springboot版本有匹配關系,所以需要修改springboot版本為2.4.3,

官方推薦Camunda7.1.5版本使用Spring Boot 2.4.x版本

具體配置參考camunda官方說明文檔:https://docs.camunda.org/manual/7.15/user-guide/spring-boot-integration/version-compatibility/

Pom.xm代碼片段:

<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.4.3</version><relativePath/> </parent>2.2、引入camunda包

由于本示例要使用camunda流程引擎、web界面、Rest服務接口,所以需要導入camunda-bpm-spring-boot-starter、camunda-bpm-spring-boot-starter-rest、camunda-bpm-spring-boot-starter-webapp這三個依賴包,如果僅僅是使用流程引擎,只需要引入camunda-bpm-spring-boot-starter就可以了。

完整的pom.xml文件如下:

<?xml version='1.0' encoding='UTF-8'?> <project xmlns='http://maven.apache.org/POM/4.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd'> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.4.3</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>com.example</groupId> <artifactId>camunda-demo1</artifactId> <version>0.0.1-SNAPSHOT</version> <name>camunda-demo1</name> <description>Demo project for Spring Boot</description> <properties> <java.version>1.8</java.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <scope>runtime</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.camunda.bpm.springboot</groupId> <artifactId>camunda-bpm-spring-boot-starter</artifactId> <version>7.15.0</version> </dependency> <dependency> <groupId>org.camunda.bpm.springboot</groupId> <artifactId>camunda-bpm-spring-boot-starter-rest</artifactId> <version>7.15.0</version> </dependency> <dependency> <groupId>org.camunda.bpm.springboot</groupId> <artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId> <version>7.15.0</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> </project>三、修改application.yaml配置

打開工程目錄下的mainresourcesapplication.yaml文件,如果沒有該文件,手動新建一個,錄入如下信息。

# Find more available configuration properties on the following pages of the documentation. # https://docs.camunda.org/manual/latest/user-guide/camunda-bpm-run/#configure-camunda-bpm-run # https://docs.camunda.org/manual/latest/user-guide/spring-boot-integration/configuration/#camunda-engine-properties camunda.bpm: generic-properties.properties: javaSerializationFormatEnabled: true admin-user: id: demo password: demo run: # https://docs.camunda.org/manual/latest/user-guide/camunda-bpm-run/#cross-origin-resource-sharing cors: enabled: true allowed-origins: '*' # datasource configuration is required spring.datasource: url: jdbc:mysql://127.0.0.1:3306/camunda715?characterEncoding=UTF-8&useUnicode=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai driver-class-name: com.mysql.cj.jdbc.Driver username: root password: root # By default, Spring Boot serves static content from any directories called /static or /public or /resources or # /META-INF/resources in the classpath. To prevent users from accidentally sharing files, this is disabled here by setting static locations to NULL. # https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-spring-mvc-static-content spring.web.resources: static-locations: NULL

本示例使用的是mysql數據庫,數據庫URL、username、 password 跟后面數據庫信息保存一致。

四、創建mysql數據庫

Camunda默認使用已預先配置好的H2數據庫,本示例使用mysql數據庫,需要提前創建mysql數據庫并導入Camunda建表腳本。

為Camunda平臺創建一個數據庫模式,名稱為camunda715

Springboot整合camunda+mysql的集成流程分析

導入SQL腳本。執行創建所有必需的表和默認索引的SQL DDL腳本。這些腳本可以在configuration/sql/create文件夾中找到。共2個腳本,都需要導入。

Springboot整合camunda+mysql的集成流程分析

導入完成后的表結構,共40張表:

Springboot整合camunda+mysql的集成流程分析

詳細配置方法參考:https://lowcode.blog.csdn.net/article/details/117564836

五、啟動springboot工程

創建springboot工程的時候,自動生成了SpringBootApplication啟動類,運行改類啟動即可。

package com.example.demo1;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;@SpringBootApplicationpublic class CamundaDemo1Application {public static void main(String[] args) {SpringApplication.run(CamundaDemo1Application.class, args);}}

Springboot整合camunda+mysql的集成流程分析

六、登錄訪問camunda

訪問:http://localhost:8080,

默認賬號密碼demo/demo

Springboot整合camunda+mysql的集成流程分析

登錄成功后進入camunda控制臺

Springboot整合camunda+mysql的集成流程分析

至此,完成了springboot2.4.3+camunda7.15+mysql的集成,后續的如何設計流程、如何啟動流程、如何審批流程等操作,跟非springboot方式是一致的,請參考前面的文章。

https://lowcode.blog.csdn.net/article/details/117518828

https://lowcode.blog.csdn.net/article/details/118055189

以上就是Springboot整合camunda+mysql的集成實現方法的詳細內容,更多關于Springboot整合camunda的資料請關注好吧啦網其它相關文章!

標簽: Spring
相關文章:
日本不卡不码高清免费观看,久久国产精品久久w女人spa,黄色aa久久,三上悠亚国产精品一区二区三区
国产高清一区| 蜜臀久久99精品久久久画质超高清| 精品美女久久| 日韩精品成人| 激情久久一区二区| 日本国产亚洲| 亚洲免费影院| 蜜桃成人精品| 久久久久免费| 国产美女亚洲精品7777| 亚洲精品福利| 亚洲一区二区三区久久久| 私拍精品福利视频在线一区| 精品三区视频| 69堂精品视频在线播放| 亚洲永久精品唐人导航网址| 欧美日韩国产在线一区| 精品三级久久| 久久久蜜桃一区二区人| 国产精品99精品一区二区三区∴| 9色国产精品| 在线精品小视频| 欧美精品九九| 视频精品一区二区| 亚洲色图网站| 日韩一区二区三区四区五区| 亚洲色图综合| 中文一区二区| 国产手机视频一区二区| 伊人久久成人| 免费看精品久久片| 色狠狠一区二区三区| 亚洲欧洲免费| 久久福利在线| 美女久久久久久 | 国产精品对白| 性欧美xxxx免费岛国不卡电影| 亚洲乱码一区| 亚洲高清毛片| 免费一级欧美片在线观看网站 | 亚洲午夜视频| 国产精品免费精品自在线观看| 欧美丝袜一区| 麻豆中文一区二区| 亚洲精品伦理| 青青久久av| 久久99蜜桃| 免费在线看一区| 久久精品青草| 精品久久免费| 久久福利在线| 国产无遮挡裸体免费久久| 亚洲欧美不卡| 在线视频观看日韩| 麻豆成全视频免费观看在线看| 欧美精品中文| 亚洲精品无播放器在线播放| 亚洲国内精品| 欧美日韩尤物久久| 日韩精品诱惑一区?区三区| 久久精品xxxxx| 日韩欧美高清一区二区三区| 99视频一区| 亚洲欧洲另类| 鲁大师影院一区二区三区| 欧美在线观看视频一区| 久久久久欧美精品| 久久国产主播| 精品中文一区| 99精品99| 一区二区国产在线观看| 午夜亚洲福利| 欧美日一区二区在线观看| 青草国产精品| 欧美日韩精品一区二区三区在线观看| 蜜桃91丨九色丨蝌蚪91桃色| 蜜臀国产一区二区三区在线播放| 中文字幕一区二区精品区| 日本免费新一区视频| 国产日韩欧美一区在线| 日本一区二区高清不卡| 亚洲午夜电影| 久久av一区二区三区| 日韩黄色在线观看| a国产在线视频| 亚洲欧美日韩国产| 国产精品观看| 蜜臀av免费一区二区三区| 视频在线观看91| 日本色综合中文字幕| 精品中文字幕一区二区三区 | 欧美视频一区| 特黄特色欧美大片| 亚洲精品中文字幕99999| 欧美黑人做爰爽爽爽| 欧美日中文字幕| 久久激情综合网| 999精品一区| 日韩福利视频导航| 久久蜜桃精品| 奇米色欧美一区二区三区| 免费视频一区二区三区在线观看| 精品一区二区三区的国产在线观看| 欧美成a人国产精品高清乱码在线观看片在线观看久 | 亚洲深深色噜噜狠狠爱网站| 国产日韩高清一区二区三区在线 | 精品久久久网| 99成人在线| 成人影视亚洲图片在线| 首页国产欧美日韩丝袜| 精品伊人久久| 欧美永久精品| 三级亚洲高清视频| 欧美日韩国产亚洲一区| 国产精品精品| 国产精品videossex久久发布| 水蜜桃久久夜色精品一区的特点| 国产在线观看www| 国产日产一区| 亚洲综合五月| 在线综合亚洲| 久久久人人人| 亚洲播播91| 快播电影网址老女人久久| 青青草91视频| 免费观看在线综合| 蜜桃av一区二区在线观看| 91精品一区二区三区综合| av免费不卡国产观看| 美女久久精品| 精品一区二区三区中文字幕在线| 日韩影片在线观看| 日本欧美一区| 国产精品香蕉| 国产高清精品二区| 麻豆精品视频在线| 国产乱码精品一区二区三区四区 | 国产精品毛片久久| 麻豆国产精品| 成人亚洲精品| 国产盗摄——sm在线视频| 国产资源在线观看入口av| 美女av在线免费看| 国产v综合v| 91久久亚洲| 日韩一区二区三区在线看| 日本午夜精品视频在线观看| 国产精品三p一区二区| 日韩成人免费| 欧美女激情福利| 久久激情五月婷婷| 国产精品久久久久久久久久10秀| 99热精品久久| 老司机精品久久| 涩涩涩久久久成人精品| 国产精品久久| 精品一区欧美| 国产精品美女午夜爽爽| 亚洲高清av| 日韩高清三区| 久久国产日韩| 日韩中文字幕一区二区高清99| 美腿丝袜亚洲三区| 久久久久久黄| 国产日产一区| 妖精视频成人观看www| 国产精品久久久久77777丨 | 水野朝阳av一区二区三区| 国产精品香蕉| 鲁大师影院一区二区三区| 你懂的网址国产 欧美| 国精品一区二区三区| 国产伦精品一区二区三区在线播放| www.com.cn成人| 欧美午夜三级| 亚洲精品综合| 老色鬼精品视频在线观看播放| 蜜桃av一区| 久久九九国产| 国内精品麻豆美女在线播放视频| 99久久精品网| 四虎成人av| 午夜天堂精品久久久久| 不卡视频在线| 国产中文在线播放| 国产欧美日韩精品一区二区三区| 亚洲欧洲一区| 亚洲精品91| 国产综合欧美| 久久免费高清| 伊人久久在线| 成人小电影网站| 成人福利视频| 成人羞羞视频播放网站| 成人在线免费观看网站| 久久99国产精品视频| 国产精品不卡| 国产成人精品一区二区免费看京| 欧美亚洲tv| 你懂的国产精品永久在线|