/*
//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());
//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());