首页 > 解决方案 > Camunda 在 Spring Boot 应用程序上禁用 DbHistoryEventHandler

问题描述

您好,我是 camunda 的新手,现在我正在将 camunda 从 3.4 迁移到 7.14,我想禁用 DbHistoryEventHandler 所以它不会写入历史表(https://docs.camunda.org/manual/7.14/update/ minor/712-to-713/#changed-behavior-for-custom-historyeventhandler ),但问题是我在spring boot camunda引擎属性上找不到enableDefaultDbHistoryEventHandler ( https://docs.camunda.org/manual/7.14 /user-guide/spring-boot-integration/configuration/#camunda-engine-properties),谁能帮我解决这个问题。

标签: javaspring-bootcamunda

解决方案


已经找到了答案,对于遇到这个问题的每个人,您都可以在您的 spring boot application.yaml 中添加这个来禁用它

  camunda.bpm:
    generic-properties:
      properties:
        enableDefaultDbHistoryEventHandler: false

参考:https ://docs.camunda.org/manual/7.14/user-guide/spring-boot-integration/configuration/#generic-properties


推荐阅读