1. HelloWorld
(Spring核心之IoC(bean通过反射创建对象,property name根据set方法注入属性,ClassPathXMLApplication()加载xml文件,ApplicationContext ctx.getBean(),可以根据id名称指定,也可以通过HelloWorld.class) &)
HelloWorld.java
package com.atguigu.spring.helloworld;
public class HelloWorld {
private String user;
public HelloWorld() {
System.out.println("HelloWorld's constructor...");
}
public void setUser(String user) {
System.out.println("setU