Camunda spring boot starter:在模式中创建数据库不起作用

Ric*_*hie 5 business-process-management camunda

我已经使用 camunda spring boot 启动项目 (1.3.0) 来通过其余 api 启动我的 camunda 引擎。

在我的 application.yml 中,我试图让 camunda 在某个模式中为我创建数据库对象。

下面的设置创建数据库对象...

camunda.bpm:
  database:
   schema-update: create-drop
   type: postgres  
   table-prefix: my_schema.
spring.datasource:
  url: "jdbc:postgresql://localhost:5432/mydb"
  username: myuser
  password: myuser
  driverClassName: org.postgresql.Driver
Run Code Online (Sandbox Code Playgroud)

但问题是这些表是在公共模式中创建的。我想要做的是添加一个等于“my_schema”的表前缀。

我是否错误地使用了此设置,或者是否缺少某些内容?

谢谢

小智 2

使用

camunda:
  bpm:
    admin-user:
      id: ${CM_ADMIN_USR:admin}
      password: ${CM_ADMIN_PWD:admin}
    database:
      schema-update: false
      schema-name: camunda
      table-prefix: camunda.
Run Code Online (Sandbox Code Playgroud)

参考 :

https://github.com/camunda/camunda-docs-manual/blob/master/content/user-guide/spring-boot-integration/configuration.md

在此输入图像描述