我在 job.quartz.xml 中提到了csv文件,如下所示。
<bean id="cvsFileItemReader" class="org.springframework.batch.item.file.FlatFileItemReader">
<!-- Read a csv file -->
<property name="resource" value="classpath*:csv/input/report.csv" />
我收到了以下错误:
Caused by: java.lang.IllegalStateException: Input resource must exist (reader is in 'strict' mode): class path resource [classpath*:csv/input/report.csv]
答案 0 :(得分:1)
将classpath*
替换为classpath