Flowable的no flowable tables in db.与Table ‘xxxx.act

编程入门 行业动态 更新时间:2024-10-15 02:33:49

Flowable的no flowable <a href=https://www.elefans.com/category/jswz/34/1614005.html style=tables in db.与Table ‘xxxx.act"/>

Flowable的no flowable tables in db.与Table ‘xxxx.act

SpringBoot项目需要整合Flowable,引入包后启动报错,中间有句话是no flowable tables in db.
解决方式:

1、主启动类上添加注解:
@EnableTransactionManagement
2、yml配置如下
# flowable配置
flowable:database-schema-update: true#pg用户使用指定,mysql不用
#  database-schema: base_data activity-font-name: "宋体"label-font-name: "宋体"annotation-font-name: "宋体"async-executor-activate: false
3、数据库连接加上
&nullCatalogMeansCurrent=true
具体来说就是flowable会先加载配置,如果database-schema-update: true,他会先去看数据库里有没有表,没有就会创建表,有表的话,他会去查看你的项目配置版本和数据库表记录的版本是不是一样,不一样他会升级,所以这也是为啥我建议完成第一次启动后就关闭掉。第三个配置加上的原因是:这个flowable会在项目启动时候他会扫描当前链接下所有的数据库,如果某一个数据库中已经存在flowable的表了,就会报错。Table ‘test.act_ge_property’ doesn’t exist,所以就加上第三个。

更多推荐

Flowable的no flowable tables in db.与Table ‘xxxx.act

本文发布于:2024-02-06 16:42:30,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1750335.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:tables   flowable   Flowable   db   act

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!