org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springProcessEngineConfiguration' defined in class path resource [xxxxx/xxxx/xxx.java]: 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;
报错原因:在resource下没有找到processes文件夹;
解决办法(二选一就好了):
1.在resource目录下添加processes文件夹,并且文件夹不能为空
2.在application.yml文件中加上如下配置(注意是spring节点下)