码上敲享录 > activiti问题详解 > class path resource [processes/] cannot be resolved to URL because it does not exist

class path resource [processes/] cannot be resolved to URL because it does not exist

上一章章节目录下一章 2020-03-07已有2790人阅读 评论(0)

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


向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交