当前位置: 代码迷 >> 综合 >> springcloud 集成 activiti 工作流 报错调试(二)
  详细解决方案

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

热度:144   发布时间:2023-10-10 04:47:04.0
  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是否修改为项目名了;或者重启nacos。
好了,本文就讲到这,下章继续报错调试。

  相关解决方案