一个人至少拥有一个梦想,有一个理由去坚强

心若没有栖息的地方,到哪里都是在流浪

java.io.FileNotFoundException: class path resource......

 

Caused by: java.io.FileNotFoundException: 
         class path resource [processes/] cannot be resolved to URL because it does not exist
  at org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:187) ~[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE]
  at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:465) ~[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE]
  at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:292) ~[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE]
  at org.springframework.boot.devtools.restart.ClassLoaderFilesResourcePatternResolver.getResources(ClassLoaderFilesResourcePatternResolver.java:113) ~[spring-boot-devtools-1.5.3.RELEASE.jar:1.5.3.RELEASE]
  at org.springframework.context.support.GenericApplicationContext.getResources(GenericApplicationContext.java:229) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
  at org.activiti.spring.boot.AbstractProcessEngineConfiguration.discoverProcessDefinitionResources(AbstractProcessEngineConfiguration.java:80) ~[activiti-spring-boot-starter-basic-5.21.0.jar:na]
  at org.activiti.spring.boot.AbstractProcessEngineAutoConfiguration.baseSpringProcessEngineConfiguration(AbstractProcessEngineAutoConfiguration.java:75) ~[activiti-spring-boot-starter-basic-5.21.0.jar:na]
  at org.activiti.spring.boot.DataSourceProcessEngineAutoConfiguration$DataSourceProcessEngineConfiguration.springProcessEngineConfiguration(DataSourceProcessEngineAutoConfiguration.java:57) ~[activiti-spring-boot-starter-basic-5.21.0.jar:na]
  at org.activiti.spring.boot.DataSourceProcessEngineAutoConfiguration$DataSourceProcessEngineConfiguration$$EnhancerBySpringCGLIB$$b30d7a9e.CGLIB$springProcessEngineConfiguration$1(<generated>) ~[activiti-spring-boot-starter-basic-5.21.0.jar:na]
  at org.activiti.spring.boot.DataSourceProcessEngineAutoConfiguration$DataSourceProcessEngineConfiguration$$EnhancerBySpringCGLIB$$b30d7a9e$$FastClassBySpringCGLIB$$f9dbb6e1.invoke(<generated>) ~[activiti-spring-boot-starter-basic-5.21.0.jar:na]
  at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE]
  at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
  at org.activiti.spring.boot.DataSourceProcessEngineAutoConfiguration$DataSourceProcessEngineConfiguration$$EnhancerBySpringCGLIB$$b30d7a9e.springProcessEngineConfiguration(<generated>) ~[activiti-spring-boot-starter-basic-5.21.0.jar:na]
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_144]
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_144]
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_144]
  at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_144]
  at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
  ... 132 common frames omitted

Caused by: java.io.FileNotFoundException:

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

上面的问题也是找了很久,原因是因为没有在pom.xml中配置下面红色标红的配置文件的路径。

《java.io.FileNotFoundException: class path resource......》

点赞

发表评论

电子邮件地址不会被公开。 必填项已用*标注