- 项目开始启动后,就开始各种报错了。
- 报错一:
[processes/] 不存在
解决方式:
spring配置文件添加:spring.activiti.check-process-definitions=false
- 报错二:
Activiti6 use spring-boot-starter-web meet requestMappingHandlerMapping error
解决方式:
启动类上添加:
@SpringBootApplication(exclude = SecurityAutoConfiguration.class)
- 报错三:
java.sql.SQLException: The server time zone value '???ú±ê×??±??' is unrecognized or represents more than one time zone.
解决方式:
mysql数据库连接url后添加参数:serverTimezone=GMT%2B8
- 报错四:
mysql-connector-mysql 8.0 (spring-boot-starter-parent 管理的版本) + Activiti 6.x 自动建表失败
解决方式:
mysql数据库连接url后添加参数:nullCatalogMeansCurrent=true
- 报错五:
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。
好了,本文就讲到这,下章继续报错调试。