flowable错误Table ‘sys.act

flowable错误Table ‘sys.act,第1张

flowable错误Table ‘sys.act

flowable错误Table 'sys.act_id_user' doesn't exist解决

flowable中文文档.

运行是会出现错误Table ‘XXX.act_id_user’ doesn’t exist
problem during schema upgrade, statement alter table ACT_ID_USER add TENANT_ID_ varchar(255) default ‘’

解决方案
mysql的连接字符串中添加上nullCatalogMeansCurrent=true,将schema默认设置为当前连接的schema。database-schema-update: true的作用是自动更新数据库中需要的表,在第一次运行时必要

server:
  port: 8088
spring:
  datasource:
    username: root
    password: ****
    url: jdbc:mysql://localhost:3306/flowable-spring-boot?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true
    driver-class-name: com.mysql.cj.jdbc.Driver

flowable:
  #关闭定时任务JOB
  async-executor-activate: false
  database-schema-update: true

注意:重新运行前需要删除已生成的数据表

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5582393.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-12-14
下一篇2022-12-14

发表评论

登录后才能评论

评论列表(0条)

    保存