接上一篇:快速开发工作流_01_简单流程案例https://gblfy.blog.csdn.net/article/details/102881983
文章目录
- 七、流程设计器 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: 80servlet: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=CTTusername: rootpassword: rootsecurity:filter:dispatcher-types: REQUEST,FORWARD,ASYNC
#在线流程图设计
flowable:#关闭定时任务JOBasync-executor-activate: falsecommon:app:idm-url: http://localhost:80/expense/idm:app:admin:user-id: adminpassword: testfirst-name: adminlast-name: adminrest:app:authentication-mode: verify-privilegemodeler:app:rest-enabled: truedatabase-schema-update: true
mybatis:mapper-locations: classpath:/META-INF/modeler-mybatis-mappings/*.xmlconfig-location: classpath:/META-INF/mybatis-config.xmlconfiguration-properties:prefix:blobType: BLOBboolValue: TRUE
7.5. 项目源码
码云地址:
https://gitee.com/gb_90/springboot-flowable-modeler
接下一篇:快速开发工作流_03_集成在线流程设计器_内置用户免登录
https://gblfy.blog.csdn.net/article/details/103676950