Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/358.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 将弹簧批次从1.1.3转换为2.0.0_Java_Spring_Quartz Scheduler_Spring Batch - Fatal编程技术网

Java 将弹簧批次从1.1.3转换为2.0.0

Java 将弹簧批次从1.1.3转换为2.0.0,java,spring,quartz-scheduler,spring-batch,Java,Spring,Quartz Scheduler,Spring Batch,我正在尝试将Spring批处理作业从1.1.3版转换为2.0.0版,但出现了许多错误。设法解决了其中大部分问题,但没有解决以下问题:在我的QuartzBatchLauncher中,代码调用“new ClassPathXmlApplicationContextJobFactory(bean、path、parent)”,而我没有发现与该类等价的2.0是什么。感谢任何能为我指明正确方向的帮助。谢谢 这可能是什么 ClassPathXmlApplicationContextFactory f = new

我正在尝试将Spring批处理作业从1.1.3版转换为2.0.0版,但出现了许多错误。设法解决了其中大部分问题,但没有解决以下问题:在我的QuartzBatchLauncher中,代码调用“new ClassPathXmlApplicationContextJobFactory(bean、path、parent)”,而我没有发现与该类等价的2.0是什么。感谢任何能为我指明正确方向的帮助。谢谢

这可能是什么

ClassPathXmlApplicationContextFactory f = new ClassPathXmlApplicationContextFactory(new ClassPathResource(path));
f.setApplicationContext(parent);

JobFactory j = new ApplicationContextJobFactory(name, f);

我想你已经看过迁移指南了吧?