flowable与spring boot集成

  1. pom.xml文件添加依赖
		<properties>
        	<flowable.version>6.4.2</flowable.version>
  	  	</properties>
        <dependency>
            <groupId>org.flowable</groupId>
            <artifactId>flowable-spring-boot-starter</artifactId>
            <version>${flowable.version}</version>
        </dependency>
        <dependency>
            <groupId>org.flowable</groupId>
            <artifactId>flowable-json-converter</artifactId>
            <version>${flowable.version}</version>
        </dependency>
  1. application.properties配置好数据库的连接池
mysql datasource url 后加 &nullCatalogMeansCurrent=true
	#比如Cause: java.sql.SQLSyntaxErrorException: Table ‘mall.act_ge_property’ doesn’t exist 这些查找不到表结构。
这个时候需要在mysql datasource url 链接后面添加nullCatalogMeansCurrent=true属性。这是因为我们用的是mysql8.0驱动,它默认nullCatalogMeansCurrent属性是false。改成true就可以自动生成表结构了。

 	# 自动生成flowable相关表 第一次生成后建议关闭提高运行速度
flowable.database-schema-update=true
	 # 保存历史数据级别设置为full最高级别,便于历史数据的追溯
flowable.history-level=full
  1. 启动spring boot后自动生成70张数据库表
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值