源于公司初期技术选型不明.客户不认可activiti5.22,需要产品升级.

话不多说,springboot的配置文件:application.yml

server:
  port: 5005
spring:
  datasource:
    url: jdbc:mysql://127.0.0.1:3306/flowable-spring-boot?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&nullCatalogMeansCurrent=true
    username: root
    password: root
    driver-class-name: com.mysql.cj.jdbc.Driver
    type: com.zaxxer.hikari.HikariDataSource
#关闭定时任务JOB
flowable:
  async-executor-activate: false

其中,数据源url上的最后一个配置nullCatalogMeansCurrent=true,一定加上.否则初次启动,数据库不会创建表,而且会报错.
贴出pom.xml文件

<dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter</artifactId>
        </dependency>

		<dependency>
			<groupId>mysql</groupId>
			<artifactId>mysql-connector-java</artifactId>
			<version>8.0.18</version>
		</dependency>

		<dependency>
			<groupId>org.flowable</groupId>
			<artifactId>flowable-spring-boot-starter</artifactId>
			<version>6.4.2</version>
		</dependency>
    </dependencies>

springboot 2.2.2.RELEASE

更多推荐