package spring.demo;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Client {
public static void main(String[] args) {
Employee e = new Employee();
e.setEid(1);
e.setEname("Sudhakar");
e.setEsalary(50000);
System.out.println(e);
ApplicationContext context= new ClassPathXmlApplicationContext("employeebean.xml");
Employee e1=(Employee) context.getBean("emp");
Employee e2=(Employee) context.getBean("emp1");
System.out.println(e1);
System.out.println(e2);
}
}