# Conflicts: # out/production/grademanagement-SpringProject/com/ssm/first/TestFirst.class
commit
c63ff7545f
@ -0,0 +1,13 @@
|
||||
package com.ssm.ioc;
|
||||
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
|
||||
public class TestIoc {
|
||||
public static void main(String[] args) {
|
||||
ApplicationContext ac = new ClassPathXmlApplicationContext("bean-ioc.xml");
|
||||
// 学生管理模块测试代码
|
||||
Student student = ac.getBean("student", Student.class);
|
||||
System.out.println("学生信息:" + student);
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Loading…
Reference in new issue