ItemReader可以”找到我的csv文件

问题描述:

我面对错误文件找不到ItemReader可以”找到我的csv文件

Caused by: java.lang.IllegalStateException: Input resource must exist 
(reader is in 'strict' mode): class path resource 
[file:///C:/Users/hello/Desktop/input/Ref_Org_Entite.csv] 

这是我application.properties

ressource.path.InputDirectory=file:///C:/Users/hello/Desktop/input/ 

我即使只有file:C:/Users/hello/Desktop/input/file:/C:/Users/hello/Desktop/input/,而不是测试工作也

这里是我的物品阅读器

public class RefOrgEntitesItemReader extends FlatFileItemReader<xxxxxx> { 

     public RefOrgEntitesItemReader(String path) { 
      this.setLinesToSkip(1); 
      this.setResource(new ClassPathResource(path + "Ref_Org_Entite.csv")); 
      ... 

,甚至当我使用的资源集合与FileSystemResource instedof ClassPathResource一个得到同样的错误 .setResource(new FileSystemResource(path + "test.csv"));

我窗10

setResource(new FileSystemResource(path + "test.csv")) 

更新我的application.properties没有文件下:

ressource.path.InputDirectory=C:/Users/hello/Desktop/input/