首先什么是简单类型{
String int Integer 之类的
enum枚举类
Class类等都是简单类
}
简单类如何set注入呢?
public class Account {
private String address;
private String name;
private Integer age;
<bean id="accountBean" class="com.chenchen.dao.Account" >
<property name="address" value="天空树最温暖了"></property>
<property name="age" value="18"></property>
<property name="name" value="绘梨衣"></property>
</bean>
<property name="address" value="天空树最温暖了"></property>
name value即可