就是针对于不同类型的变量,在spring的xml配置文件中的注入方式。
public class User {
private String name;
private HelloSpring helloSpring;
private String[] zifu;
private List<String> list;
private Map<String,String> map;
private Set<String> stringSet;
private Properties properties;
@Override
public String toString() {
return "User{" +
"name='" + name + '\'' +
", helloSpring=" + helloSpring +
", zifu=" + Arrays.toString(zifu) +
", list=" + list +
", map=" + map +
", stringSet=" + stringSet +
", properties=" + properties +
'}';
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public HelloSpring getHelloSpring() {
return helloSpring;
}
public void setHelloSpring(HelloSpring helloSpring) {
this.helloSpring = helloSpring;
}
public String[] getZifu() {
return zifu;
}
public