Spring Boot Camunda configuration: job executor, database isolation level, ID generator, log


I am based on 7.16.0.
These configurations are mainly required under the embedded process engine. For details, please refer to the official documentation:

Job executor:

Embedded is disabled by default

job-execution .enabled

database isolation level

If mysql default RR is not RC, deadlock may occur

ID generator

It is recommended to use the uuid generator in the production environment. I can directly add the id-generator here, and there is no need to add other configurations according to the official one.

 id-generator: strong

Logging configuration

If you are using logback, you can configure logging directly in yml

logging:
  level:
  #debug级别可以打印执行Sql
    org.camunda: debug

my profile

camunda:
  bpm:
    admin-user:
      id: demo
      password: demo
    filter:
      create: All tasks
    database:
      schema-update: false
    webapp:
      enabled: true
    job-execution:
      # 作业执行器——定时任务
      enabled: true
    # 历史日志记录级别
    history-level: full
    # 自动部署
    #这里配置了没有用,要去spring boot的启动类中注释@EnableProcessApplication
    auto-deployment-enabled: false
    # id 生成器 UUID 生成器;目前我用的7.16版本是默认的
    id-generator: strong

official profile

https://docs.camunda.org/manual/7.9/user-guide/spring-boot-integration/configuration/

at last

The update of the official document is delayed. Some chapters say that configuration is required, and a solution is provided.
In fact, some of them are already defaulted in the new version...

Guess you like

Origin blog.csdn.net/qq_39517116/article/details/123682698