SPRING中value和ref的简写形式
来源:互联网 发布:淘宝减肥药 妙瘦 编辑:程序博客网 时间:2024/05/21 19:30
property常规写法:
<property name="myProperty">
<value>hello</value>
</property>
<constructor-arg>
<value>hello</value>
</constructor-arg>
<entry key="myKey">
<value>hello</value>
</entry>
简写:
<property name="myProperty" value="hello"/>
<constructor-arg value="hello"/>
<entry key="myKey" value="hello"/>
ref常规写法:
<property name="myProperty">
<ref object="anotherObject"/>
</property>
<constructor-arg index="0">
<ref object="anotherObject"/>
</constructor-arg>
简写:
<property name="myProperty" ref="anotherObject"/>
<constructor-arg index="0" ref="anotherObject"/>
key ref常规写法:
<entry>
<key>
<ref object="MyKeyObject"/>
</key>
<ref object="MyValueObject"/>
</entry>
简写:
<entry key-ref="MyKeyObject" value-ref="MyValueObject"/>
<property name="myProperty">
<value>hello</value>
</property>
<constructor-arg>
<value>hello</value>
</constructor-arg>
<entry key="myKey">
<value>hello</value>
</entry>
简写:
<property name="myProperty" value="hello"/>
<constructor-arg value="hello"/>
<entry key="myKey" value="hello"/>
ref常规写法:
<property name="myProperty">
<ref object="anotherObject"/>
</property>
<constructor-arg index="0">
<ref object="anotherObject"/>
</constructor-arg>
简写:
<property name="myProperty" ref="anotherObject"/>
<constructor-arg index="0" ref="anotherObject"/>
key ref常规写法:
<entry>
<key>
<ref object="MyKeyObject"/>
</key>
<ref object="MyValueObject"/>
</entry>
简写:
<entry key-ref="MyKeyObject" value-ref="MyValueObject"/>
0 0
- SPRING中value和ref的简写形式
- SPRING.NET 1.3.2 学习13--value和ref的简写形式
- 【Spring】value和ref
- spring ref和value的用法
- CSS中(font和background)的简写形式
- value-ref在spring中配置的作用
- value和ref的区别
- Spring的ref bean和ref local
- verilog中提高可读性的简写形式的符号
- Spring框架xml配置中属性 ref 与 value的区别
- spring框架怎么选择使用ref和value?
- spring依赖注入配置及简写形式
- Spring中引用标签ref和属性ref
- Spring Bean中idref和ref区别
- spring配置文件中ref 和idref标签
- spring ref local="" 和 ref bean=""的区别
- property中的ref和value
- php三元运算符?:的简写形式
- python模块学习
- Jquery懒加载插件
- Android使用SVG小结
- ReactNative text居中问题,和报color 错误问题 ios和android
- huffman树【严蔚敏】
- SPRING中value和ref的简写形式
- oracle本地导入dmp数据
- 用intellij 搭建struts框架完成基本的功能。
- 未来已来:国际电商发展进入云时代
- zend_parse_method_parameters 和 zend_parse_parameters 区别
- 机器学习中的相似性度量
- C语言:数字菱形图案
- Android studio中git使用及git配置路径
- 五点三次平滑的程序源代码