Spring Batch无法读取xml文件

时间:2015-07-28 09:26:55

标签: spring spring-batch

创建弹出批处理应用程序时出现以下错误

No exception of type BeansException can be thrown; an exception type must be a subclass of Throwable

以下是我的代码

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
public class App {  
    public static void main(String[] args) throws BeansException  {     
            ApplicationContext context = new FileSystemXmlApplicationContext("D:\\job-report.xml"); 

    }

0 个答案:

没有答案