环境:
新建springboot项目
- 下载flowable war包
- 解压flowable-modeler.war
- 复制静态文件到项目中
将flowable-modeler\WEB-INF\classes\static下的所有文件复制到src\main\resources\static\modeler下
-
添加拦截器配置类StaticResourceConfig
由于springboot2.0.1之后的版本会拦截static下面的静态资源,故需要添加一个拦截器,不拦截static下面的静态资源
-
汉化处理
拷贝文件:
将flowable源码中的flowable-ui-modeler-logic项目下的src\main\resources\stencilset_bpmn.json、src\main\resources\stencilset_cmmn.json
翻译此两个文件中的title和description的值。
根据/src/main/resources/application.properties配置的环境,修改对应的/src/main/resources/application-dev.properties或/src/main/resources/application-test.properties中数据源的配置。