引入jar包 建立HelloSpring类 编辑测试文件application.xml 建立测试类,开始测试,注意 context.getBean(XXX) XXX可以是制定id也可以是别名,注意别名也要唯一