SpringBoot整合Flowable,1.0笔记
- 第一步首先我们创建一个 Maven 项目,引入 相关依赖,如下图,
<dependencies>
<!-- flowable -->
<dependency>
<groupId>org.flowable</groupId>
<artifactId>flowable-spring-boot-starter</artifactId>
<version>6.7.1</version>
<exclusions>
<exclusion>
<groupId>org.flowable</groupId>
<artifactId>flowable-spring-boot-starter-app</artifactId>
</exclusion>
<exclusion>
<groupId>org.flowable</groupId>
<artifactId>flowable-form-spring-configurator</artifactId>
</exclusion>
<exclusion>
<groupId>org.flowable</groupId>
<artifactId>flowable-idm-spring-configurator</artifactId>
</exclusion>
<exclusion>
<groupId>org.flowable</groupId>
<artifactId>flowable-spring-boot-starter-cmmn</artifactId>
</exclusion>
<exclusion>
<groupId>org.flowable</groupId>
<artifactId>flowable-cmmn-spring-configurator</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
</dependencies>
3.配置application.yml,数据库自己新建一个,因为他要生成表我的命名是:flowable-spring-boot
生成完表第一步暂时完成
server:
port: 8080
spring:
datasource:
username: root
password: root
url: jdbc:mysql://127.0.0.1:3306/flowable-spring-boot?zeroDateTimeBehavior=CONVERT_TO_NULL&serverTimezone=UTC
flowable:
app:
enabled: true
idm:
enabled: true
cmmn:
enabled: true
common:
app:
idm-admin:
user: root
password: root
idm-url: http://localhost:8080/expense/
database-schema-update: true
async-executor-activate: false
content:
enabled: false