A) 如果您使用的是Tomcat 发行版,请检查您的发行版是否在文件夹中包含示例 Web 应用程序camunda-invoice\camunda-bpm-.....\server\apache-tomcat-9.....\webapps
此示例项目包含org.camunda.bpm.example.invoice.DemoDataGenerator,它在此处创建用户:
https ://github.com/camunda/camunda-bpm-platform/blob/7c5bf37307d3eeac3aee5724b6e4669a9992eaba/examples/invoice/src/main/ java/org/camunda/bpm/example/invoice/DemoDataGenerator.java#L78
如果您不想要该示例,则可以完全删除文件夹 camunda-invoice 。
如果您想使用预构建的发行版,那么我建议您也看看较新的 RUN 发行版:
https ://docs.camunda.org/manual/7.15/user-guide/camunda-bpm-run/
可在 CAMUNDA 网站上作为标准下载:
https ://camunda.com/download/
B)如果您使用的是RUN 发行版,则删除 admin-user 部分:
camunda.bpm:
#admin-user:
#id: demo
#password: demo
run:
# https://docs.camunda.org/manual/latest/user-guide/camunda-bpm-run/#cross-origin-resource-sharing
cors:
enabled: true
allowed-origins: "*"
来自配置文件camunda-bpm-run-7.....\configuration\default.yml,第 5-8 行。
如果您正在准备生产使用,您可能还需要考虑使用 production.yml 配置文件。请在此处查看涵盖各种配置选项的相关文档: https ://docs.camunda.org/manual/latest/user-guide/camunda-bpm-run/