接上一篇:快速开发工作流_01_简单流程案例
文章目录
- 七、流程设计器 modeler
- 7.1. 导入war
- 7.2. 重写两个配置类
- 7.3. 添加国际化文件
- 7.4. 资源文件配置
- 7.5. 项目源码
七、流程设计器 modeler
7.1. 导入war
解压 idm, modeler war包 导入两个war中的 static 包下的文件
7.2. 重写两个配置类
AppDispatcherServletConfiguration.java
ApplicationConfiguration
springboot 启动类 import 两个配置类
@Import({
ApplicationConfiguration.class,
AppDispatcherServletConfiguration.class
})
@ComponentScan(basePackages = {"com.example.demo"})
@EnableTransactionManagement
@SpringBootApplication
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
}
7.3. 添加国际化文件
7.4. 资源文件配置
#端口 请求url
server:
port: 80
servlet:
context-path: /expense
#数据库 url classname user password
spring:
datasource:
url: jdbc:mysql://127.0.0.1:3306/springboot-flowable-modeler?autoReconnect=true&useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=CTT
username: root
password: root
security:
filter:
dispatcher-types: REQUEST,FORWARD,ASYNC
#在线流程图设计
flowable:
#关闭定时任务JOB
async-executor-activate: false
common:
app:
idm-url: http://localhost:80/expense/
idm:
app:
admin:
user-id: admin
password: test
first-name: admin
last-name: admin
rest:
app:
authentication-mode: verify-privilege
modeler:
app:
rest-enabled: true
database-schema-update: true
mybatis:
mapper-locations: classpath:/META-INF/modeler-mybatis-mappings/*.xml
config-location: classpath:/META-INF/mybatis-config.xml
configuration-properties:
prefix:
blobType: BLOB
boolValue: TRUE
7.5. 项目源码
码云地址:
https://gitee.com/gb_90/springboot-flowable-modeler
接下一篇:快速开发工作流_03_集成在线流程设计器_内置用户免登录