Springboot集成flowable工作流

文章目录

    • 概要
    • 包依赖
    • 问题
    • 小结

概要

Spirng boot 集成flowable

<spring-boot.version>3.1.5spring-boot.version>

包依赖

<dependency>
   <groupId>org.flowablegroupId>
   <artifactId>flowable-spring-boot-starterartifactId>
   <version>7.0.1version>
dependency>

使用7.0.1版本

问题

项目启动初始化flowable 表结构异常.
原因如下:

mysql8.xxx以上驱动会出现这个问题
mysql使用schema标识库名而不是catalog,因此mysql会扫描所有的库来找表,如果其他库中有相同名称的表,floable就以为找到了,本质上这个表在当前数据库中并不存在。
设置nullCatalogMeansCurrent=true,表示mysql默认当前数据库操作,在mysql-connector-java 5.xxx该参数默认为true,在6.xxx以上默认为false,因此需要设置nullCatalogMeansCurrent=true。

数据库url连接增加

&nullCatalogMeansCurrent=true

Springboot集成flowable工作流_第1张图片
如上70张表初始化完成!

小结

flowable 基础工作构建完成,其他持续更新

你可能感兴趣的:(#,工作流,技术栈,spring,boot,后端)