解决办法:
1.yml 配置时
配置mysql连接时加上:nullCatalogMeansCurrent=true
url: jdbc:mysql://localhost:3306/myActiviti?useUnicode=true&characterEncoding=utf8&nullCatalogMeansCurrent=true&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC
参考链接:https://blog.csdn.net/weixin_43770545/article/details/101197861