In the property tag, the name is the property of StudentService. java.
IStudentDaoImpl "IStudentDaoImpl.save()"
2)
StudentDaoImpl "StudentDaoImpl.save()"
.studentDao =
5. parse xml files
Map<String,Object> map= HashMap<String,Object> SaxXml() ==sb.build(.getClass().getClassLoader().getResourceAsStream("applicationContext.xml"=<Element> list=root.getChildren("bean"( i=0;i<list.size();i++==ele.getAttributeValue("id"=ele.getAttributeValue("class"=(Element elePro:(List<Element>)ele.getChildren("property"=elePro.getAttributeValue("name"=elePro.getAttributeValue("ref"="set"+name.substring(0, 1).toUpperCase()+name.substring(1"MethodName:"+=o.getClass().getMethod(methodName, map.get(bean).getClass().getInterfaces()[0
6. Create a test class
org.junit.Assert.* testSave() ==(StudentService)ClassPathXmlApplicationContext.get("studentService"
Output result: