目录
一、新建Web项目
1、使用idea创建一个Maven项目,然后添加"spring-boot-starter-web"依赖。整合代码下载地址:https://download.csdn.net/download//85146346
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
注意:使用“spring-boot-starter”进行包版本控制,因此需要添加“spring-boot-starter-parent”作为父包
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.6.6</version>
<relativePath/>
</parent>
二、下载前端文件
1、下载flowable-engine-main源码文件
下载地址:https://github.com/flowable/flowable-engine/releases/tag/flowable-6.7.2
2、找到前端文件
解压下载后的文件,找到“flowable-engine-mainmodules lowable-ui lowable-ui-modeler-frontendsrcmain esourcesstatic”文件夹。将整个”static”文件夹拷贝到自己项目下“resources”目录中。
注意:"static"文件夹中有“modeler”子文件夹,所以要访问页面url路径需要加上“/modeler”,以前的一些版本没有该文件夹。
3、测试前端页面访问
在浏览器中输入“http://localhost:8182/modeler/index.html”进行查看,得到如下图
到此前端页面已经添加完成
三、添加Flowable-ui-modeler依赖
1、添加Flowable-ui-modeler相关依赖如下
<!-- 添加flowable-ui-modeler核心依赖项-->
<dependency>
<groupId>org.flowable</groupId>
<artifactId>flowable-ui-modeler-rest</artifactId>
<version>${flowable.version}</version>
</dependency>
<!--添加flowable-ui-modeler配置依赖项-->
<dependency>
<groupId>org.flowable</groupId>
<artifactId>flowable-ui-modeler-conf</artifactId>