Chinaunix首页 | 论坛 | 博客
  • 博客访问: 614338
  • 博文数量: 298
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 3077
  • 用 户 组: 普通用户
  • 注册时间: 2019-06-17 10:57
文章分类

全部博文(298)

文章存档

2022年(96)

2021年(201)

2019年(1)

我的朋友

分类: Java

2021-08-13 13:02:10

 1. pom

点击(此处)折叠或打开

  1. <parent>
  2.         <groupId>org.springframework.boot</groupId>
  3.         <artifactId>spring-boot-starter-parent</artifactId>
  4.         <version>2.5.2</version>
  5.         <relativePath /> <!-- lookup parent from repository -->
  6.     </parent>

  7.     <properties>
  8.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  9.         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  10.         <java.version>1.8</java.version>
  11.         <shiro.version>1.5.3</shiro.version>
  12.         <flowable.version>6.6.0</flowable.version>
  13.         <maven-jar-plugin.version>3.0.0</maven-jar-plugin.version>
  14.     </properties>

  15. ========================

  16.          <!--flowable工作流依赖-->
  17.         <dependency>
  18.             <groupId>org.flowable</groupId>
  19.             <artifactId>flowable-spring-boot-starter</artifactId>
  20.             <version>${flowable.version}</version>
  21.         </dependency>
  22.          <!-- https://mvnrepository.com/artifact/org.flowable/flowable-json-converter -->
  23.         <dependency>
  24.          <groupId>org.flowable</groupId>
  25.          <artifactId>flowable-json-converter</artifactId>
  26.          <version>${flowable.version}</version>
  27.         </dependency>
  28.         <!-- app 依赖 包含 rest,logic,conf -->
  29.         <dependency>
  30.          <groupId>org.flowable</groupId>
  31.          <artifactId>flowable-ui-modeler-rest</artifactId>
  32.          <version>${flowable.version}</version>
  33.         </dependency>
  34.         <dependency>
  35.          <groupId>org.flowable</groupId>
  36.          <artifactId>flowable-ui-modeler-logic</artifactId>
  37.          <version>${flowable.version}</version>
  38.          <exclusions>
  39.          <exclusion>
  40.          <groupId>org.apache.logging.log4j</groupId>
  41.          <artifactId>log4j-slf4j-impl</artifactId>
  42.          </exclusion>
  43.          </exclusions>
  44.         </dependency>
  45.         <dependency>
  46.          <groupId>org.flowable</groupId>
  47.          <artifactId>flowable-ui-modeler-conf</artifactId>
  48.          <version>${flowable.version}</version>
  49.         </dependency>

2. 配置类

点击(此处)折叠或打开

  1. package org.fh.config;

  2. import org.flowable.spring.SpringProcessEngineConfiguration;
  3. import org.flowable.spring.boot.EngineConfigurationConfigurer;
  4. import org.springframework.context.annotation.Configuration;
  5. import org.springframework.stereotype.Controller;

  6. /**
  7.  * 说明:Flowable配置
  8.  * 作者:FH Admin
  9.  * from:fhadmin.cn
  10.  */
  11. @Controller
  12. @Configuration
  13. public class FlowableConfig implements EngineConfigurationConfigurer<SpringProcessEngineConfiguration> {
  14.     
  15.     @Override
  16.     public void configure(SpringProcessEngineConfiguration engineConfiguration) {
  17.         engineConfiguration.setActivityFontName("宋体");
  18.         engineConfiguration.setLabelFontName("宋体");
  19.         engineConfiguration.setAnnotationFontName("宋体");
  20.     }
  21.     
  22. }

3. 配置文件 flowable.properties

点击(此处)折叠或打开

  1. blobType=BLOB
  2. boolValue=TRUE
  3. prefix=


阅读(2220) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~