There are mainly three jar files required to run this application. One method is getBean(), which returns the object of the associated class.Ĥ) Load the jar files required for spring framework There are many methods in the BeanFactory interface. The XmlBeanFactory is the implementation class of the BeanFactory. The BeanFactory is responsible to return the bean. The Resource is the interface and the ClassPathResource is the implementation class of the Reource interface. The Resource object represents the information of applicationContext.xml file. Student student=(Student)factory.getBean("studentbean") Resource resource=new ClassPathResource("applicationContext.xml") īeanFactory factory=new XmlBeanFactory(resource)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |