在application.yml下配置:
activiti:
history-level: full
db-history-used: true
#自动创建表需要再数据库链接添加nullCatalogMeansCurrent=true
database-schema-update: true
check-process-definitions: false
#启用作业执行器
async-executor-activate: false
#启用异步执行器
job-executor-activate: false
接下来还需要在数据库链接加上nullCatalogMeansCurrent=true并设置上时区等:
jdbc:mysql://127.0.0.1:3306/test?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true