capint
2/14/2016 - 5:31 PM

Spring >> Get bean

Spring >> Get bean

ApplicationContext context = 
       new ClassPathXmlApplicationContext("Beans.xml");

HelloWorld obj = (HelloWorld) context.getBean("helloWorld");