spring xml Collections
来源:互联网 发布:网艹录音网络大手 编辑:程序博客网 时间:2024/05/17 00:18
In the<list/>, <set/>,<map/>, and <props/> elements, you set the properties and arguments of the JavaCollection types List, Set,Map, and Properties, respectively .
<bean id="moreComplexObject" class="example.ComplexObject"><!-- results in a setAdminEmails(java.util.Properties) call --><property name="adminEmails"><props><prop key="administrator">administrator@example.org</prop><prop key="support">support@example.org</prop><prop key="development">development@example.org</prop></props></property><!-- results in a setSomeList(java.util.List) call --><property name="someList"><list><value>a list element followed by a reference</value><ref bean="myDataSource" /></list></property><!-- results in a setSomeMap(java.util.Map) call --><property name="someMap"><map><entry key="an entry" value="just some string"/><entry key ="a ref" value-ref="myDataSource"/></map></property><!-- results in a setSomeSet(java.util.Set) call --><property name="someSet"><set><value>just some string</value><ref bean="myDataSource" /></set></property></bean>
The value of a map key or value, or a set value, can also again be any of the following elements:
bean | ref | idref | list | set | map | props | value | null
0 0
- spring xml Collections
- spring 集合装配 collections
- spring IOC 集合collections注入
- java spring Initializing Collections 初始化集合
- Spring Collections(List,Set,Map,Properties)
- 了解Spring set依赖注入集合Collections
- Collections
- Collections
- Collections
- collections
- Collections
- COLLECTIONS
- Collections
- Collections
- collections
- Collections
- Collections
- collections
- 北京周边有意境的好去处!!!
- webpack中moduleId和chunkId
- Day_8.
- xshell文件上传下载
- 关于Timer与handler
- spring xml Collections
- svn 自动更新
- 计算机科学精彩帖子收集--JAVA和分布式专栏
- CODE[VS] 天梯 1098 均分纸牌 2002年NOIP全国联赛提高组
- struts常量有哪些
- iOS控件功能总结
- JAVA线程
- 论文笔记:MatchNet: Unifying Feature and Metric Learning for Patch-Based Matching
- SylixOS I2C驱动框架图