传智播客Spring视频教程学习笔记9

时间:2022-11-28 00:13:21

Spring如何装配各种集合类型的属性

 

 

set:

 

private Set<String> set;

 

 

list:

 

private List<String> list;

 

 

properties:

 

private Properties properties;

 

 

map:

 

peivate Map<String,String> map;