Spring ClassPathXmlApplicationContext和FileSystemXmlApplicationContext路径有关问题

SpringClassPathXmlApplicationContext和FileSystemXmlApplicationContext路径问题/*//ApplicationContext

Spring ClassPathXmlApplicationContext和FileSystemXmlApplicationContext路径问题
/*
       //ApplicationContext ctx=new FileSystemXmlApplicationContext("src/main/resources/spring.xml");
       ApplicationContext ctx=new FileSystemXmlApplicationContext("file:e:/lib/spring.xml");
       Car car=(Car)ctx.getBean("car1");
       System.out.println(car.getName()+"\n"+car.getPrice());
       */
     
     //BeanFactory bf=new ClassPathXmlApplicationContext("spring.xml");
     BeanFactory bf=new ClassPathXmlApplicationContext("file:e:/lib/spring.xml");
     Car car=(Car)bf.getBean("car1");
     System.out.println(car.getName()+"\n"+car.getPrice());