flowable-6.6.0 官方flowable-ui启动

flowable-6.6.0 官方ui启动

由于最近使用flowable工作流,按照网上找到的文章,使用tomcat方式启动,有问题
在自行实验启动后,记录启动过程

1.下载官方flowable-ui 版本6.6.0

http://www.flowable.org 官网下载
可以下载6.6.0版本的
flowable-ui.war
flowable-rest.war
两个war包下载到D:\flowable-6.6.0\

2.默认配置直接启动

6.6.0版本两个war,可以直接使用Java -jar 直接启动
Java -jar 启动包路径
java -jar D:\flowable-6.6.0\flowable-ui.war
java -jar D:\flowable-6.6.0\flowable-rest.war

默认配置启动,无法连接指定的数据库,只会连接本地h2 数据库,而且h2数据库是第一次启动时创建的

3.修改数据库配置连接,并指定数据库类型

由于我使用的是pg数据库,我以pg数据库和flowable-ui.war为例
flowable-rest.war 操作与flowable-ui.war 相同
解压flowable-ui.war 到 flowable-ui 文件夹;

在这里插入图片描述

进入D:\flowable-6.6.0\flowable-ui\WEB-INF\lib文件夹,将postgresql的数据连接驱包postgresql-42.2.19.jar  复制到lib文件夹下	

在这里插入图片描述

进入D:\flowable-6.6.0\flowable-ui\WEB-INF\classes 文件夹,复制flowable-default.properties 配置文件,到D:\flowable-6.6.0\conf,并修改文件名称为flowable-ui.properties

在这里插入图片描述

在D:\flowable-6.6.0\flowable-ui 文件夹下,进行项目打包

命令:
jar cvf floeable-ui.war ./

在这里插入图片描述
在这里插入图片描述

4.修改配置文件

D:\flowable-6.6.0\flowable-ui,修改flowable-ui.properties 配置文件 

去掉原有数据库连接,增加对应的pg数据库连接

在这里插入图片描述

spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.url=jdbc:postgresql://x.x.x.x.:5432/flowable?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&stringtype=unspecified
spring.datasource.username=xxxx
spring.datasource.password=xxxx

5.启动

命令:java -jar -Dspring.config.location=配置文件路径 war路径
java -jar -Dspring.config.location=D:\flowable-6.6.0\conf\flowable-ui.properties D:\flowable-6.6.0\flowable-ui.war

在这里插入图片描述

访问 http://127.0.0.1:8081/flowable-ui/

登录名/密码
admin/test

在这里插入图片描述
在这里插入图片描述

flowable-rest.war的启动及修改数据库连接方式是相同的

  • 3
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值