springboot整合activiti 报错找不到文件[processes/]
贴上部分主要报错内容:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springProcessEngineConfiguration' defined in class path resource [org/activiti/spring/boot/DataSourceProcessEngineAutoConfiguration$DataSourceProcessEngineConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.activiti.spring.SpringProcessEngineConfiguration]: Factory method 'springProcessEngineConfiguration' threw exception; nested exception is **java.io.FileNotFoundException: class path resource [processes/] cannot be resolved to URL because it does not exist**
**Caused by: java.io.FileNotFoundException: class path resource [processes/] cannot be resolved to URL because it does not exist**
springboot整合activiti 报错找不到文件[processes/]
解决方法1:
在resources文件夹下添加processes文件夹,且processes文件夹下不能不空
解决方法2:
在application.properties文件加配置
# spring-activiti
# 自动部署验证设置:true-开启(默认)、false-关闭
spring.activiti.check-process-definitions=false