Flowable 配置不同数据库 Schema 做到数据隔离
Flowable Spring Boot About 505 words需求
后端服务使用了PostgreSQL,有自己的数据库,不想让Flowable的数据库在业务的数据库中。
实现
使用PostgreSQL的不同Schema,但还是用同一个数据库。业务数据存储在public的schema,Flowable配置到flowable的schema下。
Flowable 配置
Flowable以spring-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: 2,390 · Posted: 2024-03-12
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓
Loading...