引用Bean
Set代码:
public void setPeople(People param)
{
people = param;
}
XML代码:
<property name="people" ref="people"></property>
值传入
Set代码:
public void setPeople(String param)
{
people = param;
}
XML代码:
<property name="people" value="people"></property>
引用List ,List元素为其它Bean
Set代码:
public void setPeople(List<People> param)
{
people = param;
}
XML代码:
<property name="people" >
<list>
<ref bean="people"/>
</list>
</property>
引用List ,List元素为其它值
Set代码:
public void setPeople(List<String> param)
{
people = param;
}
XML代码:
<property name="people" >
<list>
<value>people</value>
</list>
</property>