配置文件例子:

容器生成对象代码:public static void main(String[] args) {	cxt = new ClassPathXmlApplicationContext("Beans.xml");	IStudentDao sd = (IStudentDao) cxt.getBean("StudentDao");	Liststudents = sd.list();	System.out.println("STUDENT表的记录数为:" + students.size());	for (int i = 0; i