spring.xml 文件放在src的根目录下,spring.xml文件中的Student类型配置如下 < bean id = "stu" class = "com.bean.Student" lazy-init = "true" > < constructor-arg type = "java.lang.String" > < value > value > constructor-arg > < constructor-arg type = "java.lang.String" > < value > 1008 value > constructor-arg > bean > 在Test.java中读取stu对象 _________ bf = new ClassPathXmlApplicationContext( _________ ); Student stu = ___________ ;