系列文章目录
例如:第一章 若依分离版后端框架集成Camunda
文章目录
前言
在若依框架中集成Camunda流程引擎的步骤
一、pom的引用
1.在最外层项目目录添加以下依赖
//标明版本,注意要个自己的Spring 版本匹配,匹配关系自行查询官网
<camunda.version>7.16.0</camunda.version>
2.在common 包下的pom中添加以下依赖(可以单独写一个包,这里为了省事)
<!-- camunda工作流 -->
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter</artifactId>
<version>${camunda.version}</version>
</dependency>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
<version>${camunda.version}</version>
</dependency>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
<version>${camunda.version}</version>
</dependency>
3.在yml中添加配置
camunda.bpm:
admin-user:
id: admin #用户名
password: 123456 #密码
firstName: yu
filter:
create: All tasks
4.在数据库连接后面添加&nullCatalogMeansCurrent=true
5.设置匿名访问
.antMatchers("/login", "/register", "/captchaImage").permitAll()
.antMatchers("/app/**").permitAll()
.antMatchers("/camunda/**").permitAll()
6.注释掉原有的/index访问路径
7.运行项目,直接ip+端口号即可,账号密码使用上面YML文件中设置的管理员账号
点击Admin,进入管理员页面,创建几个用户等着下面测试用
8.此时后端集成已经完成,可以看到自己的数据库中多出了49张表
总结
希望小伙伴少走弯路,可能下章会介绍写个流程实例~