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
发布评论