springcloud 集成 activiti 工作流 报错调试(二)

springcloud 集成 activiti 工作流 报错调试(二),第1张

springcloud 集成 activiti 工作流 报错调试(二)
  1. 项目开始启动后,就开始各种报错了。
  2. 报错一:[processes/] 不存在
    解决方式
    spring配置文件添加:spring.activiti.check-process-definitions=false
  3. 报错二:Activiti6 use spring-boot-starter-web meet requestMappingHandlerMapping error
    解决方式:
    启动类上添加:
@SpringBootApplication(exclude = SecurityAutoConfiguration.class)
  1. 报错三:java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone.
    解决方式:
mysql数据库连接url后添加参数:serverTimezone=GMT%2B8 
  1. 报错四:mysql-connector-mysql 8.0 (spring-boot-starter-parent 管理的版本) + Activiti 6.x 自动建表失败
    解决方式:
mysql数据库连接url后添加参数:nullCatalogMeansCurrent=true 
  1. 报错五:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'actIdGroupController': Unsatisfied dependency expressed through field 'identityService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'identityServiceBean' defined in class path resource [org/activiti/spring/boot/DataSourceProcessEngineAutoConfiguration$DataSourceProcessEngineConfiguration.class]: Unsatisfied dependency expressed through method 'identityServiceBean' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine': FactoryBean threw exception on object creation; nested exception is com.baomidou.dynamic.datasource.exception.CannotFindDataSourceException: dynamic-datasource can not find primary datasource

解决方式:检查mysql-connector-java jar包依赖,同时检查 yml中配置的seata中的group是否修改为项目名了。
好了,本文就讲到这,下章继续报错调试。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/4670964.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-06
下一篇 2022-11-06

发表评论

登录后才能评论

评论列表(0条)

保存