创建弹出批处理应用程序时出现以下错误
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");
}