Flowable 配置不同数据库 Schema 做到数据隔离

Flowable Spring Boot About 505 words

需求

后端服务使用了PostgreSQL,有自己的数据库,不想让Flowable的数据库在业务的数据库中。

实现

使用PostgreSQL的不同Schema,但还是用同一个数据库。业务数据存储在publicschemaFlowable配置到flowableschema下。

Flowable 配置

Flowablespring-boot-starter集成在Spring Boot工程中,使用Flowable配置设置指定的schema

flowable:
  database-schema: flowable

备注

需要先创建schema

create schema flowable;

完整配置

spring:
  datasource:
    url: jdbc:postgresql://localhost:5432/biz_db
    driver-class-name: org.postgresql.Driver
    username: postgres
    password: 123456

flowable:
  database-schema: flowable
Views: 248 · Posted: 2024-03-12

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh