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的启动及修改数据库连接方式是相同的