当前位置: 移动技术网 > IT编程>开发语言>Java > SpringBoot集成Flowable-modeler模块并去除权限认证(一)

SpringBoot集成Flowable-modeler模块并去除权限认证(一)

2020年07月17日  | 移动技术网IT编程  | 我要评论

一.新建SpringBoot框架,引入相关maven依赖

<properties>
        <java.version>1.8</java.version>
        <flowable.version>6.4.1</flowable.version>
    </properties>

    <dependencies>

        <!-- https://mvnrepository.com/artifact/org.mybatis/mybatis -->
        <dependency>
            <groupId>org.mybatis</groupId>
            <artifactId>mybatis</artifactId>
            <version>3.4.6</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.mybatis/mybatis-spring -->
        <dependency>
            <groupId>org.mybatis</groupId>
            <artifactId>mybatis-spring</artifactId>
            <version>1.3.2</version>
        </dependency>
        <dependency>
            <groupId>org.flowable</groupId>
            <artifactId>flowable-ui-modeler-rest</artifactId>
            <version>${flowable.version}</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.flowable/flowable-spring-boot-starter-process -->
        <dependency>
            <groupId>org.flowable</groupId>
            <artifactId>flowable-spring-boot-starter-process</artifactId>
            <version>6.4.1</version>
        </dependency>
        <!-- Druid数据库连接池 -->
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>druid-spring-boot-starter</artifactId>
            <version>1.1.22</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-starter-logging</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.liquibase</groupId>
            <artifactId>liquibase-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <scope>runtime</scope>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>

    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

二.修改配置

resources/application.properties

  配置数据库地址时后面的几个配置也不要忘记,尤其是

characterEncoding=utf-8,会解决画出的流程图的中文说明显示为乱码的问题
flowable.common.app.idm的三个配置在以后的开发中是不需要的,因为要剔除掉idm的用户权限,用自己系统的用户

三.这是最终完成后的目录结构,下面会对里面文件内容做说明

/config:两个文件,字体配置和流程引擎配置

/resource:一个文件,修改对idm查询用户登录的接口

/resources/properties:flowable-modeler的数据库脚本

/resources/static:flowable-modeler的ui文件

stencilset_bpmn.json:汉化文件

stencilset_cmmn.json:汉化文件

下一章会详细讲解文件夹里面的内容,可点击下面链接

https://blog.csdn.net/qq642999119/article/details/107400188

本文地址:https://blog.csdn.net/qq642999119/article/details/107360564

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网