spring怎样根据配置文件为用户自定义类的map属性赋值,他是怎样获取键值对类型的
public class People { private String name; private Integer age; private Map<String,Integer> physicalCharacter;
程序代码:
</property> <property name="physicalChatacter"> <map> <entry key="身高" value="167"/> <entry> <key>体重</key> <value>180</value> </entry> </map> </property>